This function is used to get the total length of the header and data in the packetbuf.
 
This function is used to get the total length of the header and data in the packetbuf.
   Exception encountered, of type "Error"