You need to pass the struct of type CYBLE_BLESS_PWR_IN_DB_T as a parameter to this API which has two elements 1) Power Level and 2) Channel type for which you want to update the power.
Could you please point out the project from where did you get this implementation?
The project is BLE Proximity Bonding (peripheral) (it also contains a central project).
I found it from a PSoC4 BLE forum post by grsr dated 30 Jun 2016 which contains the link "Attachment Download BLEProximityBonding.zip.
Line 127 of BLEAppication.c is SetTxPowerLevel(0); which calls:
void setTxPowerLevel(CYBLE_BLESS_PWR_LVL_T powerlevel)
Will this work? Maybe I just don't understand.
1 of 1 people found this helpful
You need to pass a valid value for Power Level. '0' is not a valid value. Enum CYBLE_BLESS_PWR_LVL_T does not have a valid '0' value. This is a bug in this example. Thanks for pointing this out.
Thanks Gyan, I'll stop beating my head against THAT wall and try another approach.