The Golain Arduino SDK is a C++ Software Development Kit crafted for seamless integration with the Golain IoT Platform. Built on the Arduino framework, this SDK ensures a quick and efficient setup, allowing developers to connect their IoT devices through various communication methods. The SDK supports Wi-Fi, GSM, 4G, LTE, LoRaWAN, and NB-IoT using TinyGSM, offering a comprehensive solution for a wide range of IoT applications.
Feature | Status |
---|---|
Device Shadow | ✔ |
Device Logs | ✔ |
Device Data | ✔ |
User Association | ✔ |
OTA | ✔ |
BLE | alpha |
Embedded RPC | ✘ |
Hardware | Status | Tested |
---|---|---|
ESP32-WROOM32-D | stable |
✔ |
ESP32-C3 | stable |
✔ |
ESP32-S3 | stable |
✔ |
ESP32-C6 | stable |
✔ |
nRF52840-DK + SIM7600E | dev |
✔ |
nRF52832-DK + SIM800L | dev |
✔ |
nRF9160 | dev |
✔ |
Refer to Example Projects for more details.
-
Arduino IDE
- Download and install Arduino IDE from here for your operating system.
-
Libraries dependencies for Arduino IDE
- Install
Arduino_Uno_WiFi_Dev_Ed_Library
by Arduino andArduinoJson
by Benoit from the library section. You can access it from the menu bar < Tools < Manage Libraries... section. - Also you need 2 more libraries installed,
pubsubclient
by knolleary andnanopb
by nanopb. You can find both the download links here: pubsubclient and nanopb. Once downladed add these to the libraies folder.
- Install
-
Boards for Arduino IDE
- Install
esp32
by Espressif board from the BOARDS MANAGER section. You can access it from the menu bar < Tools < Board: < Boards Manager section.
- Install
-
Setting up the essentials
- Download the golain-arduino-sdk on your machine.
- Now place that sdk folder in libraries folder of your Arduino IDE.
-
Get device credentials from Golain Console
- Login to Golain Console and navigate to the
Devices
section. - Click on
Add Device
and follow the instructions. - Download the
certs.h
file and place it in your project'smain
folder. - Also, download the
project template
and place its contents in themain
folder.
- Login to Golain Console and navigate to the
-
Final steps
- Open
main.ino
file and just ensure all the important files are present in themain
folder. These include certs, shadow and data points.
- Open
-
Verify your ESP32 board connection
- Ensure your ESP32 board appears on the
Serial Port
from thedevice
section
- Ensure your ESP32 board appears on the
-
Build and flash the program
- Once all dependencies and files are placed and modified, build the program. Your build will be flashed onto the board.
-
Verify device status
- If everything is done correctly, you should be able to see your device online on the Golain Console. And if you have included any
data points
, you will be able to see its logs in the definations section on your Golain Console.
- If everything is done correctly, you should be able to see your device online on the Golain Console. And if you have included any
you can refer this shadow example and data-points example to try on an example on your own
We welcome contributions to enhance the Golain Arduino SDK. Please submit pull requests to the GitHub repository.
For support and troubleshooting, please visit the Golain support page or contact us via email.
This project is licensed under the MIT License. See the LICENSE file for details.