My question might be a little strange but I can't find any answer to it. I'm designing a simple IoT system that has some devices as a client and a server that controls these clients like reading sensors, sending commands, etc. In the communication side, I can use any internet-based protocols like HTTP, UDP, TCP, etc.
On the other side devices using cellular network 2G to connect to the network which has a low bandwidth. Is there any standard message structure between client and server?
For example, If I want to set an led on a device I can send led=1
or I can use a JSON-based structure like {led: 1}
. But I have a very low bandwidth and I want to use a simple structure that uses compact size. Is there any standard at all?
A device might have up to 10 sensors and 10 outputs and I want to get values as fast as possible.
I know I can compress my messages but I need a robust and compact message structure.