Part Number: LP-CC2652RB
Other Parts Discussed in Thread: SYSCONFIG, CC2652RB
Hello!
I am trying to understand the Button Inferface. My Prototype has one single Button, I am starting with the sample app example which has two buttons, so I am removing one. First I remove the second button from the sysconfig and configure my button as per my hardware design.
Now in sampleapp.c I face two functions: zclSampleApp_processKey and sampleApp_processKey. Both wrapped into #ifndef CUI_DISABLE
as far as I understand, the CUI is the console user interface? How is this related to the physical buttons on my hardware? I have found the same question asked in here, but I am honestly a bit unable to make a sense the answer. Which version is relevant for the physical button press?
After all, what I want to do is on short press wake up and read my sensor and report the reading and go back to sleep for a fixed period. And on long press factory reset and start commissioning.
on a sidenot: I don't use a launchpad, I develop directly on a prototype using CC2652RB, however if I select the non-LP version I can only select Bluetooth forums, but not Zigbee, seems to be a bug in the forums software.