|
|
@ -153,7 +153,8 @@ void testConnectMQTT() |
|
|
{ |
|
|
{ |
|
|
while (!client.connected()) { |
|
|
while (!client.connected()) { |
|
|
Debug.print("Connexion au serveur MQTT... "); |
|
|
Debug.print("Connexion au serveur MQTT... "); |
|
|
if (client.connect("ESP8266Client", MQTT_USER, MQTT_PASS)) { |
|
|
|
|
|
|
|
|
// TODO : changer ça pour un truc specifique sinon provoque des erreurs mqtt
|
|
|
|
|
|
if (client.connect(MQTT_CLIENT, MQTT_USER, MQTT_PASS)) { |
|
|
Debug.print("OK\nSend Current State"); |
|
|
Debug.print("OK\nSend Current State"); |
|
|
mqttSendState(); |
|
|
mqttSendState(); |
|
|
mqttSendSpeedState(); |
|
|
mqttSendSpeedState(); |
|
|
|