PlatformIO
Add the library toplatformio.ini.
Arduino IDE
Use one of these install paths:- Install
firmnginfrom Arduino Library Manager when available. - Download the latest release ZIP from the GitHub repository and install it with Sketch -> Include Library -> Add .ZIP Library.
Device credentials
Each Firmngin device needs akeys.h file next to the sketch. Download it from the Firmngin dashboard by opening the device in Device Registry, then using the device secrets download action.
keys.h contains the device ID, device key, certificates, and validation mode used for secure connection.
Validation mode
The public template supports two validation modes:First connection checklist
- Install the library.
- Add
keys.hnext to the sketch. - Configure Wi-Fi credentials.
- Include
firmngin.handkeys.h. - Construct
FirmnginwithDEVICE_IDandDEVICE_KEY. - Call
begin()insetup(). - Call
loop()continuously inloop().