單片機 (C/Keil) ←→ UART/TCP/IP ←→ 邊緣網關 (Python) ←→ 以太網/WiFi ←→ 服務器/PC (Java/C#/Go)
{
"version": "1.0",
"msgId": "uuid",
"timestamp": 1699999999,
"type": "sensor_data",
"payload": { "temp": 25.6, "hum": 60 }
}
asyncio 或 socketserver 實現多連接並發轉發,協議轉換(Modbus→JSON)。語言無關、跨平台、可擴展、易於調試(抓包分析明文協議)。