antaresdocumentation / antares-esp8266-http

A library to simplify the process of getting and storing data to Antares IoT Platform through HTTP on ESP8266.
7 stars 2 forks source link

Antares ESP8266 HTTP

This is the documentation for Antares ESP8266 library.

This library is meant to simplify the process of retrieving and deploying data to Antares IoT Platform's REST API using ESP8266 with Arduino framework.

This library has been tested with Arduino ESP8266 version 2.5.0.

For dependencies, this library uses bblanchon's ArduinoJson v5 and is already included in the bundle.

For more information regarding the platform itself, please visit Antares' official website.

Installation

Arduino IDE

  1. Install ESP8266 Core for Arduino. For more information please refer to the ESP8266 Core for Arduino's installation manual
  2. Download the latest release and add this library into Arduino IDE (Sketch > Include Library > Add .ZIP Library...)

Examples

Please note that AntaresStoreSecure and AntaresGetLatestSecure are preferred than AntaresStoreData and AntaresGetLatestSecure because they use HTTPS (port 8443) rather than HTTP (port 8080).

API Reference

Class AntaresESP8266HTTP

All methods and properties need to be insantiated in order to use them.

Constructor

Connect to WiFi (Secure)

Connect to WiFi (Non-secure)

Get Latest Data

Store Data

Create Device

Get All Data ID

Get All Device ID

Powered by Telkom Indonesia