Controle d'une LED au travers de Home Assistant
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
378 B

3 years ago
  1. #define SERIAL_SPEED 115200
  2. // LED
  3. #define LED_PIN D0
  4. // WIFI
  5. #define wifi_ssid "XXX"
  6. #define wifi_password "XXX"
  7. // MQTT
  8. #define mqtt_server "XXX"
  9. #define mqtt_port 1883
  10. #define mqtt_user "XXX"
  11. #define mqtt_password "XXX"
  12. void setup();
  13. void setupWifi();
  14. void testConnectMQTT();
  15. void callbackMQTT(char* topic, byte* payload, unsigned int length);
  16. void loop();