We have recently upgraded our millis to milli.sfl.prod_sig.01.04.1000.122473 and are attempting to implement the sensor reboot behvaiour noted in the CoAP API documentation.
At boot, we issue a PUT to /sys/snsr?ev=rbt, and according to the documentation "The milli responds by sending a PUT request to /snsr/sys/time to set the time on the sensor."
What we are seeing is that we sometimes get the /sys/time PUT from the milli, however other times we do not get it immediately.
Here is our sensor log where we got the response immediately:
And the log where it takes 46 seconds
I'm not 100% certain that what I am seeing is the response to the /sys/snsr?ev=rbt request, or if what I am seeing is the normal /sys/time that we get when the Milli enters the network. Can you provide an example of the CoAP PUT packet that needs to be sent so I can confirm we have everything correct (content type expected etc.)
I'm interested to understand the behaviour under a few scenarios:
- MilliNIC has not entered the Mesh Network or does not yet have time, sensor sends the /sys/snsr?ev=rbt, do I get a response to the request? Ideally we'd get some sort of NACK under that scenario (e.g. return service unavailable).
- MilliNIC is connected to the mesh and has time, sensor sends the /sys/snsr?ev=rbt, should I expect the response immediately?
- MilliNIC looses connection to the mesh, restarts or otherwise looses time, does it send an unsolicited /sys/time PUT when it gets time?