From aba24a481623427aa754bdaad6d1f7e8c3c8c90e Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Fri, 2 Jun 2017 15:21:43 +0200 Subject: [PATCH] resync du fichier d'exemple.h --- arduino/sonoffentrance/sonoffentrance.example.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/arduino/sonoffentrance/sonoffentrance.example.h b/arduino/sonoffentrance/sonoffentrance.example.h index 6bf3b62..501be75 100644 --- a/arduino/sonoffentrance/sonoffentrance.example.h +++ b/arduino/sonoffentrance/sonoffentrance.example.h @@ -2,10 +2,11 @@ // OTA #define OTA_PASSWORD "XXX" -#define OTA_CLIENT "sonoff_living" +// Ce nom est réutillisé par la suite pour le RemoteDebug + MQTT +#define OTA_CLIENT "sonoff_entrance" // DebugRemote -#define REMDEB_CLIENT "sonoff_living" +#define REMDEB_CLIENT OTA_CLIENT RemoteDebug Debug; // WIFI @@ -14,9 +15,9 @@ RemoteDebug Debug; WiFiClient espClient; -#define BUTTON 0 -#define RELAY 12 -#define LED 13 +#define BUTTON_PIN 0 +#define RELAY_PIN 12 +#define LED_PIN 13 // MQTT #define MQTT_SERVER "XXX" @@ -24,9 +25,9 @@ WiFiClient espClient; #define MQTT_USER "XXX" #define MQTT_PASS "XXX" -#define MQTT_CLIENT "sonoff_entrance" -#define MQTT_COMMAND "sonoff_entrance/switch" -#define MQTT_STATE "sonoff_entrance/status" +#define MQTT_CLIENT OTA_CLIENT +#define MQTT_COMMAND MQTT_CLIENT"/switch" +#define MQTT_STATE MQTT_CLIENT"/status" char message_buff[100]; PubSubClient client(espClient);