|
Gocator API
|
| #define GO_HEARTBEAT_DEFAULT_PORT |
Default UDP port for heartbeat communication.
============================================================================
GoSdk, GoSensor (firmware), and GoSensorApp (accelerator) each define their own copy of the heartbeat wire format because they are independently compiled modules with no shared header. The three layers ship as a single version-locked release package; this is the enforcement mechanism for keeping these values in sync, NOT a build-time check.
If you change ANY of the constants or the packet struct below, you MUST update ALL THREE matching definitions, or heartbeat will silently break:
Port: GO_HEARTBEAT_DEFAULT_PORT (this file, SDK) GS_HEARTBEAT_SERVER_DEFAULT_PORT (GsHeartbeatServer.h, firmware) GS_REMOTEAPP_HEARTBEAT_DEFAULT_PORT(GsRemoteApp.z.h, accelerator)
Magic: GO_HEARTBEAT_MAGIC (this file, SDK) GS_HEARTBEAT_MAGIC (GsHeartbeatServer.h, firmware) GS_REMOTEAPP_HEARTBEAT_MAGIC (GsRemoteApp.z.h, accelerator)
Packet: GoHeartbeatPacket (this file, SDK) GsHeartbeatPacket (GsHeartbeatServer.h, firmware) GsRemoteAppHeartbeatPacket (GsRemoteApp.z.h, accelerator)
The three packet structs MUST have identical layout AND identical packed size (currently 16 bytes). Any field addition, reorder, or width change