Edit Files
This commit is contained in:
parent
b479790cda
commit
6c812d0a3d
@ -145,7 +145,7 @@ Adafruit_NeoPixel pixels = Adafruit_NeoPixel(2,13,NEO_GRBW + NEO_KHZ800);
|
|||||||
void setup(){ // Einmalige Initialisierung
|
void setup(){ // Einmalige Initialisierung
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
//----------------------------------MQTT-Client
|
//----------------------------------MQTT-Client
|
||||||
mqttclient.setServer("mqtt.unixweb.eu", 1883);
|
mqttclient.setServer("broker.mqttdashboard.com", 1883);
|
||||||
mqttclient.setCallback(mqttcallback);
|
mqttclient.setCallback(mqttcallback);
|
||||||
|
|
||||||
Serial.println();
|
Serial.println();
|
||||||
@ -154,7 +154,7 @@ void setup(){ // Einmalige Initialisierung
|
|||||||
//--------- prepare mqtt subscription
|
//--------- prepare mqtt subscription
|
||||||
mqtt_sub_count++; // add new element
|
mqtt_sub_count++; // add new element
|
||||||
if (mqtt_sub_count < MAX_MQTT_SUB) {
|
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
|
mqtt_sub[mqtt_sub_count-1].fun = mqtt_callback_topic_Octopus_Temperatur; //callback function
|
||||||
}
|
}
|
||||||
else Serial.println(" err max. mqtt subscription");
|
else Serial.println(" err max. mqtt subscription");
|
||||||
@ -202,8 +202,8 @@ void setup(){ // Einmalige Initialisierung
|
|||||||
WiFi.mode(WIFI_STA);
|
WiFi.mode(WIFI_STA);
|
||||||
delay(100);
|
delay(100);
|
||||||
Serial.print ("\nWLAN connect to:");
|
Serial.print ("\nWLAN connect to:");
|
||||||
Serial.print("Lisberg-2");
|
Serial.print("WIFI");
|
||||||
WiFi.begin("Lisberg-2","23462716825789145613");
|
WiFi.begin("SSID-Wifi","Wifi-Password-XXX");
|
||||||
while (WiFi.status() != WL_CONNECTED) { // Warte bis Verbindung steht
|
while (WiFi.status() != WL_CONNECTED) { // Warte bis Verbindung steht
|
||||||
delay(500);
|
delay(500);
|
||||||
Serial.print(".");
|
Serial.print(".");
|
||||||
|
Loading…
Reference in New Issue
Block a user