Working communication and correct parsing of packets from cloud