Skip to main content
The Firmngin Arduino repository includes example sketches for common device patterns. Start with the smallest example that matches your device, then add features only when needed. [image:Arduino examples folder with basic, MQTT, OTA, GPS, camera, and monetization examples]

Setup pattern

Most examples follow this setup:
  • Include firmngin.h from the installed library.
  • Put keys.h next to the sketch.
  • Configure Wi-Fi or another supported network client.
  • Upload the sketch with Arduino IDE or PlatformIO.
  • Watch Serial output during first connection.

Example list

MQTT-only mode

Use MqttOnlyExample only when the firmware needs MQTT to another broker without Firmngin device credentials, entities, payments, or Firmngin.begin().
For Firmngin-connected devices, use the Firmngin client lifecycle with begin() and loop().

Repository

Open the source examples in firmngin/Firmngin-Arduino.