|
|
@ -39,7 +39,7 @@ const char* mqttpassword = PWD_MQTT; |
|
|
|
constexpr unsigned int postingInterval = 60000; //Uploadintervall in Millisekunden
|
|
|
|
constexpr unsigned int dhcp_interval = 60*60*1000; |
|
|
|
|
|
|
|
int loop_count = 0; |
|
|
|
uint32_t loop_count = 0; |
|
|
|
|
|
|
|
#define EXTERNAL_POWER 1 |
|
|
|
|
|
|
@ -320,8 +320,10 @@ void ICACHE_FLASH_ATTR sendValues() { |
|
|
|
|
|
|
|
if (httpCode > 0) { |
|
|
|
if (httpCode == HTTP_CODE_CREATED) { |
|
|
|
#ifdef USERDEBUG |
|
|
|
httpclient.writeToStream(&Serial); |
|
|
|
DEBUG_MSG("\n"); |
|
|
|
#endif |
|
|
|
} else { |
|
|
|
DEBUG_MSG("[HTTP] POST... failed, error: %s\n", httpclient.errorToString(httpCode).c_str()); |
|
|
|
} |
|
|
@ -407,7 +409,7 @@ void setup() { |
|
|
|
|
|
|
|
previousMillis = millis(); |
|
|
|
|
|
|
|
DEBUG_MSG("ready.\n"); Serial.flush(); |
|
|
|
DEBUG_MSG("ready.\n"); //Serial.flush();
|
|
|
|
} |
|
|
|
|
|
|
|
void loop() { |
|
|
|