Edit Files

This commit is contained in:
Joachim Hummel 2020-10-11 11:58:32 +00:00
parent b479790cda
commit 6c812d0a3d

View File

@ -145,7 +145,7 @@ Adafruit_NeoPixel pixels = Adafruit_NeoPixel(2,13,NEO_GRBW + NEO_KHZ800);
void setup(){ // Einmalige Initialisierung
Serial.begin(115200);
//----------------------------------MQTT-Client
mqttclient.setServer("mqtt.unixweb.eu", 1883);
mqttclient.setServer("broker.mqttdashboard.com", 1883);
mqttclient.setCallback(mqttcallback);
Serial.println();
@ -154,7 +154,7 @@ void setup(){ // Einmalige Initialisierung
//--------- prepare mqtt subscription
mqtt_sub_count++; // add new element
if (mqtt_sub_count < MAX_MQTT_SUB) {
mqtt_sub[mqtt_sub_count-1].topic = "Octopus/Temperatur";
mqtt_sub[mqtt_sub_count-1].topic = "Octopus/status";
mqtt_sub[mqtt_sub_count-1].fun = mqtt_callback_topic_Octopus_Temperatur; //callback function
}
else Serial.println(" err max. mqtt subscription");
@ -202,8 +202,8 @@ void setup(){ // Einmalige Initialisierung
WiFi.mode(WIFI_STA);
delay(100);
Serial.print ("\nWLAN connect to:");
Serial.print("Lisberg-2");
WiFi.begin("Lisberg-2","23462716825789145613");
Serial.print("WIFI");
WiFi.begin("SSID-Wifi","Wifi-Password-XXX");
while (WiFi.status() != WL_CONNECTED) { // Warte bis Verbindung steht
delay(500);
Serial.print(".");