Update mg_coap_send_message.md

This commit is contained in:
Evelyn 2016-07-25 17:27:50 +01:00 committed by GitHub
parent 70bae59ec6
commit cc15320cfe

View File

@ -7,9 +7,9 @@ signature: |
struct mg_coap_message *cm);
---
Compose CoAP message from `mg_coap_message`
and send it into `nc` connection.
Return 0 on success. On error, it is a bitmask:
Composes a CoAP message from `mg_coap_message`
and sends it into `nc` connection.
Returns 0 on success. On error, it is a bitmask:
- `#define MG_COAP_ERROR 0x10000`
- `#define MG_COAP_FORMAT_ERROR (MG_COAP_ERROR | 0x20000)`