I am testing ble functions with KW38 EVB; using sample project of [BLE shell].
Test command is "gap txpower [adv/conn] [powerLevel]"
According to source code, powerLevel should be -127 ~ 127.
but the value of powerLevel between 30~127, always (FAIL)
Anybody tell me the specific condition(or reason) of FAIL?
---------------------------------------------------------
PowerLevel -127~20 : Success
PowerLevel 30~127 : FAIL <------------- This point.
PowerLevel under -127 : Error
PowerLevel over 127 : Error
---------------------------------------------------------
BLE Shell>gap txpower adv -50
--> GAP Event: Success!
BLE Shell>gap txpower adv 30
--> GAP Event: Failed!
BLE Shell>gap txpower adv 30
--> GAP Event: Failed!
BLE Shell>gap txpower adv 20
--> GAP Event: Success!
BLE Shell>gap txpower adv -127
--> GAP Event: Success!
BLE Shell>gap txpower adv -128
--> An error has occurred!
BLE Shell>gap txpower adv -129
--> An error has occurred!
BLE Shell>gap txpower conn 30
--> GAP Event: Failed!
BLE Shell>gap txpower conn 20
--> GAP Event: Success!
BLE Shell>gap txpower conn -125
--> GAP Event: Success!
BLE Shell>gap txpower conn -128
--> An error has occurred!
======================================
#define mShellMinTxPower_c (-127)
#define mShellMaxTxPower_c (127)
static int8_t ShellGap_SetTxPower(uint8_t argc, char * argv[])