|
@ -27,13 +27,14 @@ extern "C" { |
|
|
|
|
|
|
|
|
#include <XD0OTA.h> |
|
|
#include <XD0OTA.h> |
|
|
#include "main.h" |
|
|
#include "main.h" |
|
|
|
|
|
#include "passwords.h" |
|
|
|
|
|
|
|
|
const char* server = "ingress.opensensemap.org"; |
|
|
const char* server = "ingress.opensensemap.org"; |
|
|
|
|
|
|
|
|
#define MQTT_MAX_PACKET_SIZE 512 |
|
|
#define MQTT_MAX_PACKET_SIZE 512 |
|
|
const char* mqttserver = "home.xd0.de"; |
|
|
const char* mqttserver = "home.xd0.de"; |
|
|
const char* mqttusername = "esp-weatherstation"; |
|
|
const char* mqttusername = "esp-weatherstation"; |
|
|
const char* mqttpassword = "password4"; |
|
|
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; |
|
@ -240,9 +241,9 @@ void ICACHE_FLASH_ATTR sendValues() { |
|
|
delay(1); // yield();
|
|
|
delay(1); // yield();
|
|
|
WiFi.persistent(false); // don't load and save credentials to flash
|
|
|
WiFi.persistent(false); // don't load and save credentials to flash
|
|
|
WiFi.mode(WIFI_STA); |
|
|
WiFi.mode(WIFI_STA); |
|
|
wifiMulti.addAP("nether.net", "password1"); |
|
|
wifiMulti.addAP("nether.net", PWD_NETHERNET); |
|
|
wifiMulti.addAP("LNet", "password2"); |
|
|
wifiMulti.addAP("LNet", PWD_LNET); |
|
|
wifiMulti.addAP("hw1_gast", "password3"); |
|
|
wifiMulti.addAP("hw1_gast", PWD_HW1); |
|
|
wifiMulti.addAP("Freifunk", ""); |
|
|
wifiMulti.addAP("Freifunk", ""); |
|
|
|
|
|
|
|
|
if ( ip != INADDR_NONE && dns != INADDR_NONE && gateway != INADDR_NONE && subnet != INADDR_NONE |
|
|
if ( ip != INADDR_NONE && dns != INADDR_NONE && gateway != INADDR_NONE && subnet != INADDR_NONE |
|
|