I have an embedded system that monitors many sensors (GPS, Motor Speed, Temperature..)
I set up a client-server using sockets in python and I can send from the client(the embedded system) to the server(a Laptop) a string message like " Hello from client ".
But for me it would be great to send data with predifined categories so the server knows the type of the message. Upon reception the server knows it has recieved for example a GPS coordinate or motor speed.
Is there a way to do it in TCP or using any library or framework?
Thank you
I can think of three ways
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.