This article explains how you can connect your Orange NB-IoT Rapid Development Kit to AllThingsTalk Maker, and run the first example.
You can buy Orange NB-IoT Rapid Development Kit here.
VBAT 2G/3G is not inserted in the MBili Bee Socket
keys.h file located in the
arduino-nbiot-sdk-master Library folder, by default you can find it in:
DeviceToken values with the values that can be found under Device Settings > Authentication section of your device in the Maker Application. In the
keys.h file you will notice that the APN is already pre configured and should not be changed.
Simply hit the upload icon in the Arduino IDE. This will save the sketch, compile it and upload it to your Arduino.
NOTE: After uploading, you might need to flip the power switch
SW2on the Sodaq Mbili OFF and back ON to make sure the Mbili reboots and starts up our sketch.
Now your device should increase the value of a counter and send each 10 seconds its state to AllThingsTalk. This will be represented by an incrementing Asset “Counter” in the Maker application.
On first use it can take some time (up to 1,5min) to set up the NB-IoT connection.
Alternatively, you can also open the Tools > Serial monitor of the Arduino IDE. This can be very useful when debugging your own sketches. Make sure you select the correct COM port to listen (under Tools > Port ). When the monitor is open, make sure the Baud rate is set to 57600*
As a next step, please try these basic experiments connecting the Grove sensors from the kit
The SDK supports either CBOR or our custom ABCL language file to code and decode your messages. You can add multiple sensor values into 1 payload. Please read how to work with binary payloads for more information about CBOR and ABCL language files. Below is an example how to send a simple boolean value in a binary format.
payload.reset(); // Creates an empty payload message