Skip to main content
The library ships a set of example sketches (File → Examples → Hyperwisor-IOT after installing). Each is a focused, runnable starting point.

BasicSetup

The minimal sketch — initialize, connect, and stay connected.
#include <hyperwisor-iot.h>

HyperwisorIOT device;

void setup() {
  Serial.begin(115200);
  delay(1000);

  // Initialize the device.
  // With no saved credentials it starts in AP mode for provisioning.
  device.begin();

  Serial.println("Device ID: " + device.getDeviceId());
}

void loop() {
  // Keep the connection alive and handle incoming messages
  device.loop();
}
On first upload, connect to the NIKOLAINDUSTRY_Setup Wi-Fi (password 0123456789), configure your Wi-Fi and device details, and the device restarts and connects automatically.

Example index

ExampleWhat it shows
BasicSetupMinimal init + connection
CommandHandlerReceiving dashboard commands via setUserCommandHandler
GPIOControlDriving GPIO from commands
WidgetUpdatePushing live values with updateWidget
SensorDataLoggerLogging sensor readings
WiFiProvisioningThe AP-mode provisioning flow
Manual_Provisioning_ExampleSetting credentials from code
Conditional_Provisioning_ExampleProvisioning based on a condition
AttitudeWidget_MPU6050Flight attitude widget from an MPU6050
ThreeDWidgetControlDriving a 3D model widget
FSR_Pressure_SensorReading an analog pressure sensor
i2c_PCF8574_relayI²C relay control
Example names and contents track the library repository. If a sketch differs from what’s shown here, the sketch in your installed library version is the source of truth.

API reference

Every method used in these examples.