fix message and device ID not uploaded.

Signed-off-by: Colin Leung <colin@digi3studio.com>