SlideShare une entreprise Scribd logo
1  sur  67
Télécharger pour lire hors ligne
Sigfox workshop
Copenhagen Business School
March 28, 2019
About me
Nicolas Lesconnec
Head of Technology Adoption @Sigfox
Email : nicolas.lesconnec@sigfox.com
What is Sigfox ?
CONFIDENTIAL
The first and global 0G Network
4
IoT
Bringing the 4th
industrial revolution to all sectors
BACK-UP BROADBAND
Secondary connectivity & additional services for systems using
broadband networks
0G
Cost
efficient
Low
Power
Global
Network
Sigfox architecture
x
They turn into actions
and insights
through the customer IT
They can be analyzed on
Big Data
analytics platforms
Devices integrate a
connectivity module
Partners with specific
applications for your
business
Interoperability with
top-tier Big Data
platforms
Ecosystem of
certified vendors
Royalty free
Standard and easy
access
Global network with
high capacity
Small messages
optimized for
sensor data
Devices send data Messages are
transmitted through the
sigfox network
They are stored in the
sigfox cloud
Sigfox architecture
6
High capacity
Small messages
1 % duty cycle for Objects
Up to 6 messages/hour
UPLINK
12-Byte payload
- Sensor data
- Event status
- GPS fix
- Application data
DOWNLINK
8-Byte payload
- Action / actuator trigger
- Device management
- Application parameter setting
10 % duty cycle for Base Stations
4 guaranteed downlink msg/day
SIGFOX
CLOUD
High Energy Efficiency
Designed to maximize
energy efficiency
No Pairing
10 to 50mA during a few
seconds (25mW; 14dB)
depending on the chip and
the size of the payload
Idle consumption: negligible
Idle state
Communication state
6 nA
30 mA
Current
Time
~6 sec
99.x% of the time
✓
✓
✓
✓
Security
Let’s play !
Platforms we will use
• Sigfox Cloud : https://backend.sigfox.com
• Online Arduino IDE : https://create.arduino.cc
Useful Resources
• Sigfox Build (documentation): http://build.sigfox.com
• Arduino MKRFOX: https://www.arduino.cc/en/Main.ArduinoBoardMKRFox1200
• Slack Community : https://sigfoxbuilders.herokuapp.com/
• Online Q&A http://ask.sigfox.com
Find your way in the Sigfox Backend
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
List of your device types
Devices associated to a device type
Device information
Getting started with
the Arduino MKRFOX
Using the Arduino Online IDE
Create an account on
https://create.arduino.cc
Follow the instructions to install the
browser plugin
Board will show up in the menu
Setup the Arduino IDE
Select your board using the Tools > Port
menu
Set the board as Arduino MKRFOX1200
If board not present, add it using Boards Manager =>
search for MKRFox and install Arduino SAMD boards
Other option: install the IDE on your laptop
Download from
https://www.arduino.cc/en/Main/Software
You will need to install all drivers and
libraries
Setup the Arduino IDE
Install the following libraries (Sketch =>
Include Library => Manage Libraries)
• Arduino Sigfox for MKRFox1200
• Arduino Low Power
• RTCZero
Hello World
Hello World
Copy/paste from Github :
• https://github.com/nicolsc/mkrfox-hello-world
Upload to your board using the Arduino Editor or IDE
Message received ?
http://backend.sigfox.com
Navigate to the devices menu in the top bar
Click on the ID of your device
Enter the messages menu from the left navigation
column
Check device messages
Callback setup
Device Type menu
Click on your device type name
Enter the Callbacks menu
Select new default callback
Callback status
In the Devices > Messages panel, you have a indicator of the
callback status (an arrow)
Black : in progress
Green : Callback OK
Red : Callback KO (at least one of the callbacks failed)
Click the arrow to display details.
Frame parsing
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
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();
Set a custom grammar
valA & valB are shorts : 16 bits
valC is a 32 bits float
valA::uint:16:little-endian valB::uint:16:little-endian valC::float:32:little-endian
Get real world data
https://github.com/nicolsc/mkrfox-send-
internal-temperature
Downlink Callback
Bi-directional communication
Requested by the device to the network
Static downlink message size of 8 bytes
Agreed frequency of downlink
✓
✓
✓
Downlink Callback setup
Automatic callback: Device Type >
Informations > Edit
Set Downlink mode to DIRECT
Enter an 8 bytes value
Sample code
Simple change
SigFox.endPacket(); to
SigFox.endPacket(true);
This will request a response from the
network
Handle the response
https://github.com/nicolsc/mkrfox-downlink
void loop(){
while (SigFox.available()) {
Serial.print("0x");
Serial.println(SigFox.read(), HEX);
}
}
Geolocation
Geoloc callback
Simply create a SERVICE > GEOLOC
callback, and receive latitude + longitude +
accuracy
Geolocation Callback
Create a new
Service > Geoloc
callback
Use following URL
to center the map:
https://maps.googleapis.com/m
aps/api/staticmap?center={lat},{
lng}&zoom=13&scale=1&size=6
00x300&maptype=roadmap&for
mat=png&visual_refresh=true
Advanced Callbacks
with IFTTT
Advanced Callbacks
Goal: Save live information in a Google Drive
spreadsheet
How: Transfer message to IFTTT webhook and
save content to a linked GDrive spreadsheet
IFTTT?
IF this THEN that
Free service to create conditional
statements (no coding)
IFTTT Applet
Create new applet « IF Webhooks THEN Google
Spreadsheet »
Webhook: custom URL to listen to HTTP requests
IFTTT Applet
IFTTT Applet
IFTTT Applet
Value[1-3] are variables
forwarded by webhook
Value1 will contain Temp
Value2 will contain Light
Callback Configuration
Retrieve your IFTTT webhook URL here:
https://ifttt.com/maker_webhooks >
Documentation
Callback Configuration
Create a new Custom
Callback (> Device
Type)
Configure custom
payload , URL pattern
and JSON content
Running Demo App
Send a message
Check your Google Doc
has been
created/updated
Event monitoring
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
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
Thank you !
nicolas.lesconnec@sigfox.com

Contenu connexe

Tendances

Tendances (20)

Sigfox Makers Tour - Mexico City
Sigfox Makers Tour - Mexico CitySigfox Makers Tour - Mexico City
Sigfox Makers Tour - Mexico City
 
Sigfox World Expo - Advanced Workshop
Sigfox World Expo - Advanced WorkshopSigfox World Expo - Advanced Workshop
Sigfox World Expo - Advanced Workshop
 
Sigfox Workshop with an Arduino MKRFOX
Sigfox Workshop with an Arduino MKRFOXSigfox Workshop with an Arduino MKRFOX
Sigfox Workshop with an Arduino MKRFOX
 
Bosch Connected Experience - Sigfox Presentation
Bosch Connected Experience - Sigfox PresentationBosch Connected Experience - Sigfox Presentation
Bosch Connected Experience - Sigfox Presentation
 
Sigfox World Expo - Beginners Workshop
Sigfox World Expo - Beginners WorkshopSigfox World Expo - Beginners Workshop
Sigfox World Expo - Beginners Workshop
 
Sigfox Makers Tour - Copenhagen
Sigfox Makers Tour - CopenhagenSigfox Makers Tour - Copenhagen
Sigfox Makers Tour - Copenhagen
 
Sigfox Overview
Sigfox OverviewSigfox Overview
Sigfox Overview
 
Hackathon Usine Digitale - Sigfox intro
Hackathon Usine Digitale - Sigfox introHackathon Usine Digitale - Sigfox intro
Hackathon Usine Digitale - Sigfox intro
 
BCX17 - Sigfox intro
BCX17 - Sigfox introBCX17 - Sigfox intro
BCX17 - Sigfox intro
 
Sigfox Makers Tour São Paulo
Sigfox Makers Tour São PauloSigfox Makers Tour São Paulo
Sigfox Makers Tour São Paulo
 
Sigfox Usecases (extract)
Sigfox Usecases (extract)Sigfox Usecases (extract)
Sigfox Usecases (extract)
 
Sigfox Makers Tour - Bratislava
Sigfox Makers Tour - BratislavaSigfox Makers Tour - Bratislava
Sigfox Makers Tour - Bratislava
 
Sigfox User Group Launch UK
Sigfox User Group Launch UKSigfox User Group Launch UK
Sigfox User Group Launch UK
 
Sigfox Euratech Workshop
Sigfox Euratech WorkshopSigfox Euratech Workshop
Sigfox Euratech Workshop
 
SigfoxGettingStarted
SigfoxGettingStartedSigfoxGettingStarted
SigfoxGettingStarted
 
Devtalks Cluj - Develop geolocation solutions with Sigfox
Devtalks Cluj - Develop geolocation solutions with SigfoxDevtalks Cluj - Develop geolocation solutions with Sigfox
Devtalks Cluj - Develop geolocation solutions with Sigfox
 
Big Data through small messages with Sigfox
Big Data through small messages with SigfoxBig Data through small messages with Sigfox
Big Data through small messages with Sigfox
 
Sigfox XKit Workshop
Sigfox XKit WorkshopSigfox XKit Workshop
Sigfox XKit Workshop
 
SigfoxGettingStarted TechshopParis
SigfoxGettingStarted TechshopParisSigfoxGettingStarted TechshopParis
SigfoxGettingStarted TechshopParis
 
XKE // Sigfox Workshop
XKE // Sigfox WorkshopXKE // Sigfox Workshop
XKE // Sigfox Workshop
 

Similaire à IoT Workshop with Sigfox & Arduino - Copenhagen Business School

Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...
Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...
Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...
Dominik Obermaier
 

Similaire à IoT Workshop with Sigfox & Arduino - Copenhagen Business School (20)

SIGFOX Makers Tour - Porto
SIGFOX Makers Tour - PortoSIGFOX Makers Tour - Porto
SIGFOX Makers Tour - Porto
 
SIGFOX Makers Tour - Dublin
SIGFOX Makers Tour - DublinSIGFOX Makers Tour - Dublin
SIGFOX Makers Tour - Dublin
 
20190305sigfox tech-v2
20190305sigfox tech-v220190305sigfox tech-v2
20190305sigfox tech-v2
 
20190305sigfox tech-v2
20190305sigfox tech-v220190305sigfox tech-v2
20190305sigfox tech-v2
 
Sigfox Makers Tour - Torino
Sigfox Makers Tour - TorinoSigfox Makers Tour - Torino
Sigfox Makers Tour - Torino
 
Sigfox Workshop with Akeru & TheThings.io
Sigfox Workshop with Akeru & TheThings.ioSigfox Workshop with Akeru & TheThings.io
Sigfox Workshop with Akeru & TheThings.io
 
Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!
 
SigfoxGettingStarted October2018
SigfoxGettingStarted October2018SigfoxGettingStarted October2018
SigfoxGettingStarted October2018
 
communicate with instrument by using lan
communicate with instrument by using lancommunicate with instrument by using lan
communicate with instrument by using lan
 
Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...
Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...
Bringing M2M to the web with Paho: Connecting Java Devices and online dashboa...
 
SigfoxMakersDay Total
SigfoxMakersDay TotalSigfoxMakersDay Total
SigfoxMakersDay Total
 
Windows 10 IoT Core, a real sample
Windows 10 IoT Core, a real sampleWindows 10 IoT Core, a real sample
Windows 10 IoT Core, a real sample
 
Getting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer KitGetting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer Kit
 
Raspbeery PI IoT
Raspbeery PI IoTRaspbeery PI IoT
Raspbeery PI IoT
 
Developing new zynq based instruments
Developing new zynq based instrumentsDeveloping new zynq based instruments
Developing new zynq based instruments
 
[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...
[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...
[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...
 
From the internet of things to the web of things course
From the internet of things to the web of things courseFrom the internet of things to the web of things course
From the internet of things to the web of things course
 
Can we build an Azure IoT controlled device in less than 40 minutes that cost...
Can we build an Azure IoT controlled device in less than 40 minutes that cost...Can we build an Azure IoT controlled device in less than 40 minutes that cost...
Can we build an Azure IoT controlled device in less than 40 minutes that cost...
 
FIWARE Primer - Learn FIWARE in 60 Minutes
FIWARE Primer - Learn FIWARE in 60 MinutesFIWARE Primer - Learn FIWARE in 60 Minutes
FIWARE Primer - Learn FIWARE in 60 Minutes
 
Federico Michele Facca - FIWARE Primer - Learn FIWARE in 60 Minutes
Federico Michele Facca - FIWARE Primer - Learn FIWARE in 60 MinutesFederico Michele Facca - FIWARE Primer - Learn FIWARE in 60 Minutes
Federico Michele Facca - FIWARE Primer - Learn FIWARE in 60 Minutes
 

Dernier

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 

Dernier (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 

IoT Workshop with Sigfox & Arduino - Copenhagen Business School

  • 1. Sigfox workshop Copenhagen Business School March 28, 2019
  • 2. About me Nicolas Lesconnec Head of Technology Adoption @Sigfox Email : nicolas.lesconnec@sigfox.com
  • 4. CONFIDENTIAL The first and global 0G Network 4 IoT Bringing the 4th industrial revolution to all sectors BACK-UP BROADBAND Secondary connectivity & additional services for systems using broadband networks 0G Cost efficient Low Power Global Network
  • 6. They turn into actions and insights through the customer IT They can be analyzed on Big Data analytics platforms Devices integrate a connectivity module Partners with specific applications for your business Interoperability with top-tier Big Data platforms Ecosystem of certified vendors Royalty free Standard and easy access Global network with high capacity Small messages optimized for sensor data Devices send data Messages are transmitted through the sigfox network They are stored in the sigfox cloud Sigfox architecture 6
  • 7.
  • 9. Small messages 1 % duty cycle for Objects Up to 6 messages/hour UPLINK 12-Byte payload - Sensor data - Event status - GPS fix - Application data DOWNLINK 8-Byte payload - Action / actuator trigger - Device management - Application parameter setting 10 % duty cycle for Base Stations 4 guaranteed downlink msg/day SIGFOX CLOUD
  • 10. High Energy Efficiency Designed to maximize energy efficiency No Pairing 10 to 50mA during a few seconds (25mW; 14dB) depending on the chip and the size of the payload Idle consumption: negligible Idle state Communication state 6 nA 30 mA Current Time ~6 sec 99.x% of the time ✓ ✓ ✓ ✓
  • 13. Platforms we will use • Sigfox Cloud : https://backend.sigfox.com • Online Arduino IDE : https://create.arduino.cc
  • 14. Useful Resources • Sigfox Build (documentation): http://build.sigfox.com • Arduino MKRFOX: https://www.arduino.cc/en/Main.ArduinoBoardMKRFox1200 • Slack Community : https://sigfoxbuilders.herokuapp.com/ • Online Q&A http://ask.sigfox.com
  • 15. Find your way in the Sigfox Backend 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
  • 16. List of your device types
  • 17.
  • 18. Devices associated to a device type
  • 20. Getting started with the Arduino MKRFOX
  • 21. Using the Arduino Online IDE Create an account on https://create.arduino.cc Follow the instructions to install the browser plugin
  • 22. Board will show up in the menu
  • 23. Setup the Arduino IDE Select your board using the Tools > Port menu Set the board as Arduino MKRFOX1200 If board not present, add it using Boards Manager => search for MKRFox and install Arduino SAMD boards
  • 24. Other option: install the IDE on your laptop Download from https://www.arduino.cc/en/Main/Software You will need to install all drivers and libraries
  • 25. Setup the Arduino IDE Install the following libraries (Sketch => Include Library => Manage Libraries) • Arduino Sigfox for MKRFox1200 • Arduino Low Power • RTCZero
  • 27. Hello World Copy/paste from Github : • https://github.com/nicolsc/mkrfox-hello-world Upload to your board using the Arduino Editor or IDE
  • 28. Message received ? http://backend.sigfox.com Navigate to the devices menu in the top bar Click on the ID of your device Enter the messages menu from the left navigation column
  • 30. Callback setup Device Type menu Click on your device type name Enter the Callbacks menu Select new default callback
  • 31.
  • 32.
  • 33.
  • 34.
  • 35. Callback status In the Devices > Messages panel, you have a indicator of the callback status (an arrow) Black : in progress Green : Callback OK Red : Callback KO (at least one of the callbacks failed) Click the arrow to display details.
  • 36.
  • 38. 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
  • 39.
  • 40.
  • 41. 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();
  • 42. Set a custom grammar valA & valB are shorts : 16 bits valC is a 32 bits float valA::uint:16:little-endian valB::uint:16:little-endian valC::float:32:little-endian
  • 43. Get real world data https://github.com/nicolsc/mkrfox-send- internal-temperature
  • 45. Bi-directional communication Requested by the device to the network Static downlink message size of 8 bytes Agreed frequency of downlink ✓ ✓ ✓
  • 46. Downlink Callback setup Automatic callback: Device Type > Informations > Edit Set Downlink mode to DIRECT Enter an 8 bytes value
  • 47.
  • 48.
  • 49. Sample code Simple change SigFox.endPacket(); to SigFox.endPacket(true); This will request a response from the network
  • 50. Handle the response https://github.com/nicolsc/mkrfox-downlink void loop(){ while (SigFox.available()) { Serial.print("0x"); Serial.println(SigFox.read(), HEX); } }
  • 52. Geoloc callback Simply create a SERVICE > GEOLOC callback, and receive latitude + longitude + accuracy
  • 53. Geolocation Callback Create a new Service > Geoloc callback Use following URL to center the map: https://maps.googleapis.com/m aps/api/staticmap?center={lat},{ lng}&zoom=13&scale=1&size=6 00x300&maptype=roadmap&for mat=png&visual_refresh=true
  • 55. Advanced Callbacks Goal: Save live information in a Google Drive spreadsheet How: Transfer message to IFTTT webhook and save content to a linked GDrive spreadsheet
  • 56. IFTTT? IF this THEN that Free service to create conditional statements (no coding)
  • 57. IFTTT Applet Create new applet « IF Webhooks THEN Google Spreadsheet » Webhook: custom URL to listen to HTTP requests
  • 60. IFTTT Applet Value[1-3] are variables forwarded by webhook Value1 will contain Temp Value2 will contain Light
  • 61. Callback Configuration Retrieve your IFTTT webhook URL here: https://ifttt.com/maker_webhooks > Documentation
  • 62. Callback Configuration Create a new Custom Callback (> Device Type) Configure custom payload , URL pattern and JSON content
  • 63. Running Demo App Send a message Check your Google Doc has been created/updated
  • 65. 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
  • 66. 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