feature/http_call_send_json #3

Merged
f merged 56 commits from feature/http_call_send_json into master 2022-11-27 11:02:22 +01:00
Showing only changes of commit 17fdbe6155 - Show all commits

View file

@ -94,18 +94,10 @@ void setup()
wifiConnect(); wifiConnect();
debug("Connected!"); debug("Connected!");
#ifdef INFLUXDB_FEATURE initWifiBasedSW();
influxdb_begin();
#endif
initSensors(); initSensors();
#ifdef WEBUPDATER_FEATURE
#ifndef BATTERY_POWERED
setupWebUpdater(DEVICE_NAME, WiFi.localIP().toString());
#endif
#endif
//It's magic! leave in //It's magic! leave in
delay(100); delay(100);
@ -140,6 +132,23 @@ void setup()
//*************************************************************************// //*************************************************************************//
void initWifiBasedSW()
{
#ifdef INFLUXDB_FEATURE
influxdb_begin();
#endif
#ifdef WEBUPDATER_FEATURE
#ifndef BATTERY_POWERED
setupWebUpdater(DEVICE_NAME, WiFi.localIP().toString());
#endif
#endif
}
//*************************************************************************//
void initSensors() void initSensors()
{ {
// Initialize and configure the sensors // Initialize and configure the sensors