Skip to content

golain-io/golain-arduino-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golain Arduino SDK

Introduction

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.

Features

Feature Status
Device Shadow
Device Logs
Device Data
User Association
OTA
BLE alpha
Embedded RPC

Supported Hardware and Testing Status

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.

Getting Started

Prerequisites

  1. Arduino IDE

    • Download and install Arduino IDE from here for your operating system.
  2. Libraries dependencies for Arduino IDE

    • Install Arduino_Uno_WiFi_Dev_Ed_Library by Arduino and ArduinoJson 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 and nanopb by nanopb. You can find both the download links here: pubsubclient and nanopb. Once downladed add these to the libraies folder.
  3. 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.

Setup

  1. Setting up the essentials

    • Download the golain-arduino-sdk on your machine.
    • Now place that sdk folder in libraries folder of your Arduino IDE.
  2. 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's main folder.
    • Also, download the project template and place its contents in the main folder.

    template

  3. Final steps

    • Open main.ino file and just ensure all the important files are present in the main folder. These include certs, shadow and data points.
  4. Verify your ESP32 board connection

    • Ensure your ESP32 board appears on the Serial Port from the device section
  5. 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.
  6. 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.

Example Project

you can refer this shadow example and data-points example to try on an example on your own

Contributing

We welcome contributions to enhance the Golain Arduino SDK. Please submit pull requests to the GitHub repository.

Support

For support and troubleshooting, please visit the Golain support page or contact us via email.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Arduino SDK to connect to Golain IoT Platform

Resources

License

Stars

Watchers

Forks

Packages

No packages published