feature/http_call_send_json #3
1 changed files with 18 additions and 9 deletions
|
@ -94,18 +94,10 @@ void setup()
|
|||
wifiConnect();
|
||||
debug("Connected!");
|
||||
|
||||
#ifdef INFLUXDB_FEATURE
|
||||
influxdb_begin();
|
||||
#endif
|
||||
initWifiBasedSW();
|
||||
|
||||
initSensors();
|
||||
|
||||
#ifdef WEBUPDATER_FEATURE
|
||||
#ifndef BATTERY_POWERED
|
||||
setupWebUpdater(DEVICE_NAME, WiFi.localIP().toString());
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//It's magic! leave in
|
||||
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()
|
||||
{
|
||||
// Initialize and configure the sensors
|
||||
|
|
Loading…
Reference in a new issue