Part Number: SIMPLELINK-CC26X2-SDK
In multi_role sample code, the following is used to set advertising parameters
#define GAPADV_PARAMS_LEGACY_SCANN_CONN { \
.eventProps = GAP_ADV_PROP_CONNECTABLE | GAP_ADV_PROP_SCANNABLE | \
GAP_ADV_PROP_LEGACY, \
.primIntMin = 320, \
.primIntMax = 320, \
.primChanMap = GAP_ADV_CHAN_ALL, \
.peerAddrType = PEER_ADDRTYPE_PUBLIC_OR_PUBLIC_ID, \
.peerAddr = { 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa }, \
.filterPolicy = GAP_ADV_WL_POLICY_ANY_REQ, \
.txPower = GAP_ADV_TX_POWER_NO_PREFERENCE, \
.primPhy = GAP_ADV_PRIM_PHY_1_MBPS, \
.secPhy = GAP_ADV_SEC_PHY_1_MBPS, \
.sid = 0 \
}
Is it possible to set txPower to a specific value (since TI BLE5-Stack API Documentation 1.01.01.00 says its currently not implemented, unsure if the documentation stands for cc26x2 ble sdk) or should the function HCI_EXT_SetTxPowerCmd (unsure if this is the right function) be used to set Tx power level. If so can this function be used to change Tx power after GapAdv_create() is called.
Thanks in advance