Hello, I'm an engineer living in Japan.
【Development environment】
"SDK:nRF Connect SDK v2.4.2"
"IDE:VSCode 1.83.1"
"PCA10040(nRF52832)" x 1 (central)
"PTM215B" EnOcean × 1 (peripheral)
"PTM535BZ" + "ECO260" × 1 (peripheral)
This is a question about decommissioning EnOcean switches.
I am proceeding with development based on the enocean sample program stored in SKD.
I sent a commissioning signal from the EnOcean switch to commission the central "PCA10040 (nRF52832)"
and confirmed that it operates normally.
I have confirmed that the main function of "main.c" defines a function that calls back to EnOcean events,
and that the "enocean_commissioned" function is called during commissioning.
However, I did not understand the conditions that would cause the decommission event to occur.
I don't know if there is a way to make the EnOcean switch send a decommission signal.
■main.c (in the main function)
static const struct bt_enocean_callbacks enocean_callbacks = {
.button = enocean_button,
.sensor = enocean_sensor,
.commissioned = enocean_commissioned,
.decommissioned = enocean_decommissioned,
.loaded = enocean_loaded,
};
I have confirmed that there is a "bt_enocean_decommission" function in the EnOcean.c file, but I did not know how to use it.
Question 1)
Please tell me how to decommission EnOcean switches one by one.
It is also possible to send a decommission signal from the EnOcean switch.
Question 2)
Please let me know if there is a way to delete commissioned EnOcean switches all at once.
Thank you for your support.