resync du fichier d'exemple.h

This commit is contained in:
Julien Cabillot 2017-06-02 15:21:43 +02:00 committed by Cabillot Julien
parent 422a936a10
commit aba24a4816

View File

@ -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);