Sigfox discovery workshop using an Arduino MKRFOX board.
* Getting started with the MKRFOX
* Getting started with the Sigfox Cloud
* First messages over the Sigfox network
* Downlink feature
* Callback settings
* Events configuration
* IFTTT demo
* API configuration
Session held in Cape Town on November 8th, 2017
11. Finding your way
The Sigfox Cloud is organized around 3 concepts :
• Group : Contract & User rights
• Device Type : Family of devices sharing the same
properties
• Device : A unique device
25. Sigfox payload display feature
Using a « simple » grammar, you can ask
Sigfox to parse your incoming data
This is done at the device type level
26.
27.
28. Parsing the Hello World sample
Modify the sketch to send 3 values in a same message
short valA = 7700;
short valB = 128;
float valC = 654.32;
SigFox.beginPacket();
SigFox.write(valA);
SigFox.write(valB);
SigFox.write(valC);
SigFox.endPacket();
29. Set a custom grammer
valA & valB are shorts : 16 bytes
valC is a 32 bytes float
valA::uint:16:little-endian
valB::uint:16:little-endian
valC::float:32:little-endian
31. How does it work?
Downlink flag included in Sigfox message
20 sec after first frame transmission, the chipset
wakes up and waits for downlink response (25 sec
window)
35. Downlink callback
To send the response from your own server, change
the Downlink mode to CALLBACK
Then create a DATA > BIDIR callback
Make sure you comply with the expected JSON
format
37. Create credentials
Credentials are handled at the Group level
In your group, select API Access in the left panel
Click the New button in the top right corner
Select the rights (read, write) to grant
38. API Documentation
You now have an « API Documentation »
link next to your API Credentials
Documentation is tailored to the user rights
associated to each credential pair
44. Monitor break in sequence number
New Event: Device > Event Configuration > New
Select Event Type « Out of message sequence »
Select « EMAIL » as channel and enter your email
address and email content
45. Monitor break in sequence number
Remove the antenna to simulate a coverage issue
Send a message
Re-attach the antenna and send a new message
Check reception of email notification
47. Geolocation Callback
⚠Under deployment in South Africa. Availability Q1
2018
Create a new Service > Geoloc callback
Use following URL to center the map:
https://maps.googleapis.com/maps/api/staticmap?center={lat},{lng}
&zoom=13&scale=1&size=600x300
50. Advanced Callbacks
Goal: Save chipset temperature in a Google Drive
spreadsheet
How: Transfer message to IFTTT webhook and save
content to a linked GDrive spreadsheet
51. IFTTT?
IF this THEN that
Free service to create conditional statements (no
coding)
52. IFTTT Applet
Create new applet « IF Webhooks THEN Google
Spreadsheet »
Webhook: custom URL to listen to HTTP requests