Code indention fixes-
This commit is contained in:
parent
a50fe16819
commit
14bbf2b9a4
1 changed files with 27 additions and 27 deletions
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#ifdef HTTP_CALL_SEND_JSON_DATA
|
#ifdef HTTP_CALL_SEND_JSON_DATA
|
||||||
#include <ESP8266HTTPClient.h>
|
#include <ESP8266HTTPClient.h>
|
||||||
#include <UrlEncode.h> // from bib manager UrlEncode by Masayuki
|
#include <UrlEncode.h> // from bib manager UrlEncode 1.0.0 by Masayuki
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//*************************************************************************//
|
//*************************************************************************//
|
||||||
|
@ -756,30 +756,30 @@ String getJsonData()
|
||||||
{
|
{
|
||||||
debug(String(SENSOR_TEMPERATURE) + "=" + String(currentSensorData[SENSOR_TEMPERATURE]));
|
debug(String(SENSOR_TEMPERATURE) + "=" + String(currentSensorData[SENSOR_TEMPERATURE]));
|
||||||
String msg = hb_ws_msg_start +
|
String msg = hb_ws_msg_start +
|
||||||
hb_ws_msg_temp +
|
hb_ws_msg_temp +
|
||||||
String(currentSensorData[SENSOR_TEMPERATURE], 2) +
|
String(currentSensorData[SENSOR_TEMPERATURE], 2) +
|
||||||
", " +
|
", " +
|
||||||
hb_ws_msg_humi +
|
hb_ws_msg_humi +
|
||||||
String((isnan(currentSensorData[SENSOR_HUMIDITY]) ? 0.0 : currentSensorData[SENSOR_HUMIDITY]), 2) +
|
String((isnan(currentSensorData[SENSOR_HUMIDITY]) ? 0.0 : currentSensorData[SENSOR_HUMIDITY]), 2) +
|
||||||
", " +
|
", " +
|
||||||
hb_ws_msg_light +
|
hb_ws_msg_light +
|
||||||
String(currentSensorData[SENSOR_LIGHT], 0) + // The light level for the homebridge-http-lux2 plugin is only able to parse integer values
|
String(currentSensorData[SENSOR_LIGHT], 0) + // The light level for the homebridge-http-lux2 plugin is only able to parse integer values
|
||||||
", " +
|
", " +
|
||||||
hb_ws_msg_windspeed +
|
hb_ws_msg_windspeed +
|
||||||
String(currentSensorData[SENSOR_WINDSPEED], 2) +
|
String(currentSensorData[SENSOR_WINDSPEED], 2) +
|
||||||
", " +
|
", " +
|
||||||
hb_ws_msg_pressure +
|
hb_ws_msg_pressure +
|
||||||
String(currentSensorData[SENSOR_PRESSURE], 2) +
|
String(currentSensorData[SENSOR_PRESSURE], 2) +
|
||||||
", " +
|
", " +
|
||||||
hb_ws_msg_voltage +
|
hb_ws_msg_voltage +
|
||||||
String(currentSensorData[SENSOR_VOLTAGE], 2) +
|
String(currentSensorData[SENSOR_VOLTAGE], 2) +
|
||||||
", " +
|
", " +
|
||||||
hb_ws_msg_timestamp +
|
hb_ws_msg_timestamp +
|
||||||
String(millis()) +
|
String(millis()) +
|
||||||
", " +
|
", " +
|
||||||
hb_ws_msg_valid +
|
hb_ws_msg_valid +
|
||||||
String(validData) +
|
String(validData) +
|
||||||
hb_ws_msg_end;
|
hb_ws_msg_end;
|
||||||
|
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue