AIS Magellan Library, a software development kit used on arduino platform, have been developed for Magellan IoT Platform. Support Arduino UNO.
#include "Magellan_BC95_lite.h"
Magellan_BC95_lite magel;magel.begin(); //init Magellan LIBPlease use the payload in JSON format
Example
{"Temperature":25,"Humidity":90}
payload="{\"Temperature\":"+Temperature+",\"Humidity\":"+Humidity+"}";The example code report payload data to Magellan IoT Platform.
magel.report(payload);Please the location payload data as below format.
Example
payload={"Location":"Latitude,Longitude"}Show battery on dashboard
Battery is range in 0-100 %.
Example
payload={"Battery":100} Show Lamp status on dashbord
please use 0 or 1 to send status
Example
payload={"Lamp":0}
payload={"Lamp":1}Note In this case, the device has already preload code then you just plug and play the development kit.