How should firmware handle Realer API failures?

Firmware should treat Realer as a cloud control plane that can be temporarily unavailable, reject invalid data, or stop accepting cloud operations when the device loses runtime access.

  • For rejected HTTPS results, use response codes and field semantics to decide whether to retry, ignore, reconcile, or enter local safe behavior.
  • If credentials expire during bootstrap or at runtime, follow authentication for OAuth tokens and MQTT flow for short-lived MQTT credentials.
  • If MQTT refuses a publish because the device sent too often, wait before retrying and send pending command outcomes first. See how to handle the MQTT quota refusal.
  • If a credit-funded operation is refused for insufficient credits or budget, ask the payer to check the balance and device budget. For a device with an existing subscription, see the subscription ending guide.

The API failure handling guide covers firmware behavior. Use API Docs for exact request, payload, and response contracts.