Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to Discover Payload length of each message in CoAP using Contiki-NG?

Description

The Payload Length Parameter specifies the length of the data payload.

The number of bytes in the payload depends on the number of packets selected for transmitting data packets.

Step 1

Open coap.c file in the following location:

>>contiki-ng/os/net/app-layer/coap/coap.c Here,the size_t coap_serialize_message function determines the payload length.



Step 2

Run the simulation



Step 3

Mote Output