Tool/software:
Hi,
I am digging a little in the ns_coap_node code and I'd like to ask 2 questions about coap_message_handler_request_send function:
1. One of the function's parameter is sn_coap_content_format_e which can take, among other values, COAP_CT_TEXT_PLAIN or COAP_CT_JSON. If I want to send a group of data in the JSON format, what would be the difference between them? What is the correct format that I need to set when using TEXT_PLAIN and using JSON?
2. When sending a confirmable message, coap_message_handler_request_send can set a function to handle acknowledgments. Is there a timeout in the request send function that would send data again if no ACK is received? How does the delivery guarantee works in this case?
Thank you in advance.
BR,
Eduardo.