Added timeout for transmit.
Fixed millis() datatype to unsigned long
Verify malformed payload