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 (center)
"PTM215B" EnOcean x 1 (peripheral equipment)
"PTM535BZ" + "ECO260" x 1 (peripheral equipment)
This is a question regarding decommissioning of the EnOcean switch.
We are proceeding with development based on the eneocean sample program stored in SKD.
Commissioning is fine and working fine.
However, I am having trouble decommissioning the EnOcean switch.
I previously asked a similar question on DevZone and received the following response.
Answer 1)
If you want to decommission all switches you can use bt_enocean_foreach().
Answer 2)
EnOcean switches can be decommissioned individually using bt_enocean_decommission().
I tried to delete all registered EnOcean switches based on the answer above, but I was unable to delete them.
I'm guessing that the method of specifying the arguments is probably wrong, but even when I look at the reference, I can't find any specific code, so I'm having a hard time.
I searched the internet but couldn't find any useful information.
question)
Please tell me how to delete all commissioned EnOcean switches.
It would be helpful if you could tell me with sample code.
Thank you.