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.
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.
Run the simulation
Mote Output