Skip to main content
Every call is made on a HyperwisorIOT instance. This page pairs each method with its signature and a copy-paste example.
In the examples, targetId is where a message is routed (your dashboard/user). Read it from an incoming command’s from, or from your product configuration.

Core

begin()

Initialize everything — Wi-Fi, provisioning, the realtime connection, and command handlers. Call once in setup().

loop()

Keep the connection alive and process incoming messages. Call every loop().

setApiKeys()

Set the product’s API key and secret key.

Identity

Provisioning

Set Wi-Fi and identity. Persisted in Preferences, so you only do this once.
See Provisioning for AP-mode setup.

Receiving commands

setUserCommandHandler()

Register a callback for commands sent from a dashboard.

sendTo()

Send a message to another target, building the payload inline.

JSON helpers

Navigate an incoming command payload without parsing by hand.

Updating widgets

updateWidget()

Push a value to a dashboard widget by its widget ID. Overloads cover the common types.
Where do I get the widgetId? Select the widget in the Dashboard Designer and open General → Basic. The Widget ID field holds the value — use the copy button and paste it into your updateWidget / widget.* call. See Binding Data for the full model.
Widget ID in the General tab

Copy a widget's ID from General → Basic — this is the value your update calls reference.

Specialized widget helpers

Dialogs

Show a dialog on the user’s dashboard. showDialog takes an icon; the named helpers are shortcuts.

Database

Insert, read, update, and delete records. Each has a fire-and-forget form and a …WithResponse form that returns the result.

Sensor data logger

Onboarding

SMS

Authentication

Time & date (NTP)

GPIO state persistence

Remember pin states across reboots.

Device status

See full sketches

Complete example programs.