I have to send the periodic data from ns_coap_node to Border Router. What all functions do I need?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I have to send the periodic data from ns_coap_node to Border Router. What all functions do I need?
Hi Sajal,
CoAP protocol uses the client server model. The ns_coap_node project hosts a CoAP server with the LED resource.
This allows the spinel-cli + border router to send Get/put requests to the LED resource. This is the default behavior of the coap node example.
The easiest way to periodically get data to the border router would be to poll for this data from the border router.
But if you need to initiate communication from the CoAP node to the border router. Then we need to mimic the server in the spinel-cli. And then use coap_service_request_send() to this simulated coap server.
We are working on this Simple Link Academy which is due to come out soon.
Regards,
Sid
The spinel-cli is an example implementation of a host application interacting with the wi-sun network coprocessors.
It is a command line interface, thus expects command input from the user.
To get rid of this, you would have to define your own class where command line is not used but the methods used in the spinel-cli can be directly be called.
We are working on a collateral which would enable automated ping testing which will be release soon.
Regards,
Sid