🔌 Server Connection Status (Read)
Server Connection Status
| Field | Type | Description |
|---|---|---|
connected | bool | Whether the device is currently connected to the haptics sensation server |
Server Session Status
| Field | Type | Description |
|---|---|---|
deviceIpAddress | uint32 | Device IP represented as a 4‑byte integer (e.g., 192.168.1.100 → 0xC0A80164) |
connectedAt | uint32 | Unix timestamp when the WiFi/server connection was established |
serverSyncTime | uint32 | Device internal time (milliseconds since power‑on) when the last time‑sync was received from the server |
⏰ Server Time Synchronization (Write)
Server Sync Time
Use this command to synchronize the device’s internal clock/timeline reference with official server time. Purpose:- Align device playback timeline with media or scripting engines
- Ensure scripts using large millisecond timestamps (Melody engine, HPS streams) reference a consistent time source
- Update internal device time offset
- Improve timeline accuracy for upcoming sensation sessions
✅ Always request this after a device joins WiFi for reliable scripted playback sync.
✅ Integration Tips
- Call Server Connection Status to confirm the device is connected before sending timeline-based or streamed commands.
- Convert IP values properly if displaying to users — backend value is a 32‑bit integer.
- Request Server Time Sync during onboarding or prior to scripted video/VR playback.
- Use
serverSyncTimeto validate that new commands use a current timeline reference.