Create a callback in Sigfox backend using JSON

What are the Sigfox callbacks ? Sigfox offers a callback service: every time a message is received by the network, you can set up the way you want it to be forwarded…

Tutorials

What are the Sigfox callbacks ?

Sigfox offers a callback service: every time a message is received by the network, you can set up the way you want it to be forwarded to your application server.
You can configure your URL, content-type, request body, etc…

screencapture-backend-sigfox-com-devicetype-572727d451e24e76a5b58239-callbacks-new-1462887859789

Log in your sigfox backend account and go to “Device Type”, then click on card’s name.
On the menu on the right you will be able to see at the bottom “callbacks”.
Click on “New” (upper-right corner) and then “Custom callback”.

You will see a form with various options, set them as:

  • Type: Data / Uplink
  • Channel: Url
  • Send duplicate: leave uncheck
  • Custom payload config: temp::uint:8 humidity::uint:8 lum::uint:8 voltage::uint:16
  • Url pattern: http://your-url:your-port/api/messages
  • Use HTTP method: POST
  • Send SNI: Leave uncheck
  • Headers: Leave blank
  • Content type: application/json
  • Body:

{
“device” : “{device}”,
“data” : “{data}”,
“temp” : {customData#temp},
“hum”: {customData#humidity},
“lum”: {customData#lum},
“voltage”: {customData#voltage}
}

Note: Be careful to respect Json format

To validate, click on OK.

Recent stories

  • 5 IoT applications to make our planet great again!

    The US have left Paris climate agreement against the will of most citizens. We list here 5 IoT applications that will help to decrease the CO2 emissions on top of…
    Insiders - Partners - Products
  • Total Eclipse of IoT

    This Monday may have been the first one in a while that the entire country was actually excited about! Everyone had eclipse fever, and our Sigfox team was no exception.…
    Insiders