Posts

Showing posts with the label iot project

Wifi HomeAutomation

Image
In this tutorial you will learn to automate things using wfi via your smartphone. Here you will learn to make your own app using MIT APP Inventor.





GoogleAssitance_Automation_.ino  - File Coding

#include <ESP8266WiFi.h>
#include "Adafruit_MQTT.h"
#include "Adafruit_MQTT_Client.h"

#define Relay1            D6
#define Relay2            D5
#define Relay3            D2
#define Relay4            D1

#define WLAN_SSID       "Roboshala"             // Your SSID
#define WLAN_PASS       "roboindia@alok"        // Your password

/************************* Adafruit.io Setup *********************************/

#define AIO_SERVER      "io.adafruit.com"
#define AIO_SERVERPORT  1883                   // use 8883 for SSL
#define AIO_USERNAME    "Roboshala"            // Replace it with your username
#define AIO_KEY         "50a98bb44f6b48b69e645badadf8fb577894"   // Replace with your Project Auth Key

/************ Global State (y…