device_heartbeat
Send a heartbeat signal from a device to report its status.
WHEN TO USE:
Regular device health monitoring (every 30-60 seconds)
Reporting current playback status
Reporting errors or issues
RETURNS:
success: Boolean indicating success
device_status: Current device status in system
next_heartbeat_seconds: Recommended interval for next heartbeat
EXAMPLE: User: "Send heartbeat for device P_abc123" device_heartbeat({ fingerprint: "P_abc123", status: "playing", current_ad_id: "507f1f77bcf86cd799439011", uptime_seconds: 3600 })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Current device status | |
| fingerprint | Yes | Device fingerprint (e.g., "P_abc123") | |
| current_ad_id | No | Currently playing ad ID (if status is "playing") | |
| error_message | No | Error message (if status is "error") | |
| uptime_seconds | No | Device uptime in seconds |