Browse Source

cleanup

main
Hendrik Langer 7 years ago
parent
commit
aefaa5a157
  1. 6
      src/main.cpp

6
src/main.cpp

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

Loading…
Cancel
Save