===void packetbuf_set_datalen(uint16_t len)===
 
===void packetbuf_set_datalen(uint16_t len)===
 
For outbound packets, the packetbuf consists of two parts: header and data. This function is used to set the length of the data in the packetbuf.
 
For outbound packets, the packetbuf consists of two parts: header and data. This function is used to set the length of the data in the packetbuf.
Exception encountered, of type "Error"