This Arduino sketch allows you to control your device through the Anedya.
Warning
This code is for hobbyists for learning purposes. Not recommended for production use!!
Following steps ouline the overall steps to setup a project. You can read more about the steps here
- Create account and login
- Create new project.
- Create a node (e.g., for home- Room1 or study room).
Tip
For more details, Visit anedya documentation
- Connect Led at GPIO pin 5(Marked D1 on the nodeMCU)
- Replace
<PHYSICAL-DEVICE-UUID>
with your 128-bit UUID of the physical device. - Replace
<CONNECTION-KEY>
with your connection key, which you can obtain from the node description. - Set up your WiFi credentials by replacing
SSID
andPASSWORD
with your WiFi network's SSID and password.
This repository contains the ArduinoJson library, which provides efficient JSON parsing and generation for Arduino and other embedded systems. It allows you to easily serialize and deserialize JSON data, making it ideal for IoT projects, data logging, and more.
- Open the Arduino IDE.
- Go to
Sketch > Include Library > Manage Libraries...
. - In the Library Manager, search for "ArduinoJson".
- Click on the ArduinoJson entry in the list.
- Click the "Install" button to install the library.
- Once installed, you can include the library in your Arduino sketches by adding
#include <ArduinoJson.h>
at the top of your sketch.
The timelib.h
library provides functionality for handling time-related operations in Arduino sketches. It allows you to work with time and date, enabling you to synchronize events, schedule tasks, and perform time-based calculations.
To include the timelib.h
library:
- Open the Arduino IDE.
- Go to
Sketch > Include Library > Manage Libraries...
. - In the Library Manager, search for "Time".
- Click on the ArduinoJson entry in the list(
Time by Michael Margolis
). - Click the "Install" button to install the library.
- Once installed, you can include the library in your Arduino sketches by adding
#include <TimeLib.h>
at the top of your sketch.
This repository contains the PubSubClient library, which provides a simple interface to publish and subscribe to messages using the MQTT protocol. It is suitable for connecting Arduino devices to MQTT brokers, enabling efficient communication in IoT projects.
- Open the Arduino IDE.
- Go to Sketch > Include Library > Manage Libraries....
- In the Library Manager, search for "PubSubClient".
- Click on the PubSubClient entry in the list.(
PubSubClient by nick-o-larry
) - Click the "Install" button to install the library.
- Once installed, you can include the library in your Arduino sketches by adding #include <PubSubClient.h> at the top of your sketch.
Tip
Looking for Python SDK? Visit PyPi or Github Repository
Tip
For more information, visit anedya.io