oublie 3/2 :)
This commit is contained in:
parent
ec0a08f517
commit
6cb24030f7
@ -21,7 +21,7 @@ void setup() {
|
|||||||
setupWifi();
|
setupWifi();
|
||||||
|
|
||||||
// MQTT
|
// MQTT
|
||||||
client.setServer(mqtt_server, mqtt_port);
|
client.setServer(MQTT_SERVER, MQTT_PORT);
|
||||||
client.setCallback(callbackMQTT);
|
client.setCallback(callbackMQTT);
|
||||||
testConnectMQTT();
|
testConnectMQTT();
|
||||||
|
|
||||||
@ -82,5 +82,5 @@ void callbackMQTT(char* topic, byte* payload, unsigned int length) {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
testConnectMQTT();
|
testConnectMQTT();
|
||||||
client.loop();=
|
client.loop();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user