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

  • Sigfox & UnaBiz want to unwired billions of buttons

    BARCELONA, 28/02/17 – During the Mobile World Congress 2017 in Barcelona, UnaBiz will present a significant step towards a digitalized world. We went through retail, to web, to mobile, and…
    Partners - Products
  • Is 2017 the year of the smart meter?

    By Thomas Lorbach, Product Marketing Manager at NXP  & Philippe Garnier, Director of Global Ecosystem Partners at Sigfox Is 2017 the year of the smart meter? Imagine how far we’ve…
    Insiders - Partners - Products
  • How to turn your product or service on-demand?

    With the proliferation of various IoT technologies in recent years, we’ve seen an ample amount of new solutions and opportunities for businesses. The majority of the solutions so far have…
    Partners - Products