parse mqtt header when data received from broker.