resync du fichier d'exemple.h
This commit is contained in:
parent
422a936a10
commit
aba24a4816
@ -2,10 +2,11 @@
|
|||||||
|
|
||||||
// OTA
|
// OTA
|
||||||
#define OTA_PASSWORD "XXX"
|
#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
|
// DebugRemote
|
||||||
#define REMDEB_CLIENT "sonoff_living"
|
#define REMDEB_CLIENT OTA_CLIENT
|
||||||
RemoteDebug Debug;
|
RemoteDebug Debug;
|
||||||
|
|
||||||
// WIFI
|
// WIFI
|
||||||
@ -14,9 +15,9 @@ RemoteDebug Debug;
|
|||||||
|
|
||||||
WiFiClient espClient;
|
WiFiClient espClient;
|
||||||
|
|
||||||
#define BUTTON 0
|
#define BUTTON_PIN 0
|
||||||
#define RELAY 12
|
#define RELAY_PIN 12
|
||||||
#define LED 13
|
#define LED_PIN 13
|
||||||
|
|
||||||
// MQTT
|
// MQTT
|
||||||
#define MQTT_SERVER "XXX"
|
#define MQTT_SERVER "XXX"
|
||||||
@ -24,9 +25,9 @@ WiFiClient espClient;
|
|||||||
#define MQTT_USER "XXX"
|
#define MQTT_USER "XXX"
|
||||||
#define MQTT_PASS "XXX"
|
#define MQTT_PASS "XXX"
|
||||||
|
|
||||||
#define MQTT_CLIENT "sonoff_entrance"
|
#define MQTT_CLIENT OTA_CLIENT
|
||||||
#define MQTT_COMMAND "sonoff_entrance/switch"
|
#define MQTT_COMMAND MQTT_CLIENT"/switch"
|
||||||
#define MQTT_STATE "sonoff_entrance/status"
|
#define MQTT_STATE MQTT_CLIENT"/status"
|
||||||
|
|
||||||
char message_buff[100];
|
char message_buff[100];
|
||||||
PubSubClient client(espClient);
|
PubSubClient client(espClient);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user