sdk-ameba-v4.0c_180328/component/common/example/coap
2019-04-02 16:34:25 +08:00
..
example_coap.c first add sdk 2019-04-02 16:34:25 +08:00
example_coap.h first add sdk 2019-04-02 16:34:25 +08:00
readme.txt first add sdk 2019-04-02 16:34:25 +08:00

This example demonstrates how to use mbed-CoAP C library to build and parse a CoAP message.

In the example, a confirmable GET request is send to test server "coap.me" to retrieve the resource under path "/hello". The expected return is an ACK message with payload "world".

Note:
Company Firewall may block CoAP message. You can use copper (https://addons.mozilla.org/en-US/firefox/addon/copper-270430/) to test the server's reachability.