Azzar_budiyanto

esp multiple relay using adafruit.io (config files)

Sep 17th, 2021
591
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //library
  2. #include <ESP8266WiFi.h>
  3. #include "Adafruit_MQTT.h"
  4. #include "Adafruit_MQTT_Client.h"
  5. //wifi config
  6. #define WLAN_SSID       ".........."             // Your SSID
  7. #define WLAN_PASS       ".........."        // Your password
  8. //aio config
  9. #define AIO_SERVER      "io.adafruit.com"
  10. #define AIO_SERVERPORT  1883                   // use 8883 for SSL
  11. #define AIO_USERNAME    "aio username"
  12. #define AIO_KEY         "aio key"
RAW Paste Data