sigfox / sigfox-downlink

Basic examples to handle Sigfox downlink requests
28 stars 16 forks source link

Downlink Example ACK #6

Closed BlairAllegroTech closed 3 years ago

BlairAllegroTech commented 4 years ago

Would you be able to add to the downlink example an example (preferably the NodeJS example) of the expected Downlink ACK response.

I have an Oyster device which takes several configuration messages. I am expecting an ACK to come back with ack:true after sending a downlink message, before i send the next configuration downlink message.

Then finally when all configurations are sent i would respond to the last ACK with a 204 (No Content) do indicate that there are no more configuration messages ?

I could have completely misunderstood the documentation but an example would be really help full!!

Much Appreciated

nicolsc commented 4 years ago

Hi @BlairAllegroTech

In fact it seems you would need to build your own applicative acknowledgement mechanism to achieve this.

By default, what happens is:

Long story short : The only "downlink delivery" callback that you can subscribe (SERVICE>ACK) will notify you that the message has been emitted, which doesn't mean for sure that it was received by your device.

In this extensive blog post, @disk91 gets into the details and suggest a way to set up your own "downlink reception confirmation" mechanism https://www.disk91.com/2017/technology/sigfox/sigfox-downlink-in-details/ Diapositive13