Skip to main content
1-Visitor
December 20, 2016
Solved

sigfox downlink

  • December 20, 2016
  • 1 reply
  • 4297 views

I am using Sigfox extension and it works fine for uplink.

I have read in documentation that downlink is not supported I don't really understand why :

I am using it simply outside Thingworx just by answering using a JSON message with the device ID and payload to send to sigfox when receiving a GET callback

(cgi-bin / python script)

exemple :{"FFFFF":{"downlinkData":"4142434441424344"}}

I am trying to use the "setDownlinkMessage" without success

I don't know what to put in "message" and "thingName" input, I tried many things but always (invalid payload in Sigfox logs)

Thanks for help

Pascal

Best answer by pjoly

solution given by support and working for me :

What is needed is to get results formatted as JSON. Two things are needed to make that happen:

  1. The service invoked needs to have the return basetype set as JSON.
  2. When you do the REST request (POST) to invoke the service you need to include the header: Accept: application/json. This can be included as a HTTP header or as an url parameter.

So, when you configure the downlink in Sigfox, you need to include this Accept=application/json in your url parameter.

Also, you may have to enable disable Filter Content-Type under PlatformSubsystem in TWX.

1 reply

pjoly1-VisitorAuthor
1-Visitor
January 10, 2017

In order to investigate, I have uploaded the extension into Eclipse java.

I cannot find any java code, just xml structures in the extension.

My question :

where can I find the code associated to  the POST request send by SIGFOX in order to put the right json message in the answer ?

https://myserver/Thingworx/Things/Sigfox.CallbackInterface/Services/CallbackDataBatch?appKey=mykey&batch={batch}

Thanks

pjoly1-VisitorAuthor
1-Visitor
March 30, 2017

hello

nobody is using Sigfox with thingworx who could help me to fix this downlink issue or should I re-developp a new one ??

Is this extension developped by Sigfox or by Thingworx ?

Thanks

1-Visitor
July 22, 2017

Have you perhaps found a solution yet?