nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ bt_enocean_commission()

int bt_enocean_commission ( const bt_addr_le_t *  addr,
const uint8_t  key[16],
uint32_t  seq 
)

#include <include/bluetooth/enocean.h>

Manually commission an EnOcean device.

Allows devices to be commissioned based on out of band data, like NFC or QR codes.

Parameters
addrAddress of the commissioned device.
keyEncryption key for the commissioned device.
seqMost recent sequence number of the device.
Return values
0The device has been successfully commissioned.
-EEXISTThis device has already been commissioned.
-ENOMEMThere's not enough space to commission a new device.
-ECANCELEDThe commissioning callback rejected the device.
-EBUSYFailed allocating persistent storage data.