Hi, i wonder how could i send data from a coap_server to a coap_client with thread, for example a temperature data: what are the main functions to declare and use to do so?
Thansk
Hi, i wonder how could i send data from a coap_server to a coap_client with thread, for example a temperature data: what are the main functions to declare and use to do so?
Thansk
Fine, but i just don't understand the mechanism....If i know the IP of my thread device how could i send a GET request for example, from my smartphone to get temperature data from that device? How phone and thread device will understand each other?
Hi Simon,
One way of doing this is by following this path: Thread device--POST-->CoAP Server--GET-->Mobile CoAP Client App
If the thread device can POST to a CoAP server, then everything is exactly same as solution mentioned in nRF91 simple tracker solution – Nordic Developer Academy (nordicsemi.com). There is CoAP client that can run on mobile phone.
Here is a reference for thread device POST/GET CoAP server: (+) OpenThread COAP Client to a public server over Internet - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)
Hope this helps.
Best Regards,
Swathy