void updateStreamMessage(void) { // Initialize Stream Message String stream_message = "\"GTYP\":\"Stream\","; // Get Stream Message stream_message += sensor_water_ph_temperature_ec_default.get(); stream_message += sensor_tsl2561_light_intensity_default.get(); stream_message += sensor_dht22_air_temperature_humidity_default.get(); // does not work on 1.0 stream_message += sensor_gc0011_air_co2_temperature_humidity_default.get(); stream_message += actuator_relay_air_heater_default.get(); stream_message += actuator_relay_air_humidifier_default.get(); stream_message += actuator_relay_air_vent_default.get(); stream_message += actuator_relay_air_circulation_default.get(); stream_message += chamber_illumination_default.get(); stream_message += dose_pump1_default.get(); stream_message += dose_pump2_default.get(); stream_message += dose_pump3_default.get(); stream_message += dose_pump4_default.get(); stream_message += actuator_relay_airpump_default.get(); stream_message += actuator_relay_co2_default.get(); stream_message += actuator_relay_watercir_default.get(); stream_message += actuator_relay_coolvalve_default.get(); // Return Stream Message stream_message += "\"GEND\":0"; // Send Stream Message communication.send(stream_message); }
void updateStreamMessage(void) { // Initialize Stream Message String stream_message = "\"GTYP\":\"Stream\","; // Get Stream Message //stream_message += sensor_dfr01610300_water_ph_temperature_ec_default.get(); stream_message += sensor_venier_ph_default.get(); stream_message += sensor_vernier_ec_default.get(); stream_message += sensor_ds18b20_water_temperature.get(); stream_message += sensor_tsl2561_light_intensity_default.get(); stream_message += sensor_dht22_air_temperature_humidity_default.get(); // does not work on 1.0 stream_message += sensor_gc0011_air_co2_temperature_humidity_default.get(); stream_message += sensor_contact_switch_general_shell_open_default.get(); stream_message += sensor_contact_switch_general_window_open_default.get(); stream_message += actuator_relay_air_heater_default.get(); stream_message += actuator_relay_air_humidifier_default.get(); stream_message += actuator_relay_air_vent_default.get(); stream_message += actuator_relay_air_circulation_default.get(); stream_message += actuator_relay_light_panel_default.get(); stream_message += actuator_relay_light_chamber_illumination_default.get(); stream_message += actuator_relay_light_motherboard_illumination_default.get(); // Return Stream Message stream_message += "\"GEND\":0"; // Send Stream Message communication.send(stream_message); }