Hi,
I am programming the nRF52833 DK using the nRF Connect SDK (v2.00). I have built and flashed the Bluetooth: Peripheral HT sample from Zephyr to both boards successfully. I use the Android nRF Connect app to connect to the SoC.
I would like to see what the TX power of the peripheral is so that I can confrim that it has been set as desired but I am not sure how to show this information. I have seen that some devices advertise soemthing like: "TX power level: 0dBm". How do I do this? I have attached a PDF file with a screenshot of this.
I have also attached a piece of code that shows the advertising data (taken from Bluetooth: Peripheral HT). I can see in the Zephyr gap.h file that there are numerous flags / data type definitions that can be used as adveritsing data. BT_DATA_TX_POWER is one of these - I tried to use it as shown blow (commented out) but it did not work.
Thanks,
Adam
static const struct bt_data ad[] = {
BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),
//BT_DATA_BYTES(BT_DATA_TX_POWER),
BT_DATA_BYTES(BT_DATA_UUID16_ALL,
BT_UUID_16_ENCODE(BT_UUID_HTS_VAL),
BT_UUID_16_ENCODE(BT_UUID_DIS_VAL),
BT_UUID_16_ENCODE(BT_UUID_BAS_VAL)),
};