// Create an ESP8266 WiFiClient class to connect to the MQTT server.
WiFiClient client; // or... use WiFiClientSecure for SSL
// Setup the MQTT client class by passing in the WiFi client and MQTT server and login details.
Adafruit_MQTT_Client mqtt(&client, AIO_SERVER, AIO_SERVERPORT, AIO_USERNAME, AIO_KEY);
Adafruit_MQTT_Subscribe role1 = Adafruit_MQTT_Subscribe(&mqtt, AIO_USERNAME"/feeds/Role1", MQTT_QOS_1);
Adafruit_MQTT_Publish role1_get = Adafruit_MQTT_Publish(&mqtt, AIO_USERNAME "/feeds/Role1/get");
#define PIN_ROLE1 D2 // Röle 1
#define ROLE_AC LOW
#define ROLE_KAPAT HIGH