This library only supports the DEVIO NB-SHIELD I & DEVIO NB-SHIELD I Plus. If you have any questions or concerns, please reach out to us on DEVIO FB Fanpage
The AIS BC95 API Library is an Arduino IDE library that has been developed to support platforms that use UDP, MQTT (BC95-G only)
#include "AIS_BC95_API.h"
AIS_BC95_API nb;
UDP
nb.begin(address,port);
MQTT
nb.begin();
setupMQTT();
//nb.connectMQTT(host, port, clientID, username, password)
nb.setCallback(callback);
UDP
nb.sendMsgSTR(host,port,payload); // Send data in String
// or
nb.sendMsgHEX(host,port,payload); // Send data in HexString
MQTT
nb.publish(topic,payload,pubQoS,pubRetained);
The AIS Magellan Library is an SDK for use with the Magellan IoT Platform and the Arduino IDE.
#include "Magellan_BC95.h"
Magellan_BC95 magel;
magel.begin(); //init Magellan LIB
Please ensure that the payload is in JSON format, for example:
payload="{\"Temperature\":"+Temperature+",\"Humidity\":"+Humidity+"}";
Please ensure that the payload is in JSON format, for example:
magel.report(payload);
Location
payload="{\"Location\":"Latitude,Longitude"}";
Battery Status on Dashboard
Battery must be in the range of 0-100 %
payload="{\"Battery\":100}";
Lamp Status
Send status using 0 or 1.
payload="{\"Lamp\":0}";
payload="{\"Lamp\":1}";
Note For more examples, please refer to the example code included in the Arduino IDE.