Closed eltsov-da closed 5 years ago
https://esp-idf.readthedocs.io/en/latest/api-reference/bluetooth/controller_vhci.html?highlight=esp_ble_tx_power_set#_CPPv220esp_ble_tx_power_set20esp_ble_power_type_t17esp_power_level_t indicates this should only be set after a connection is made. Maybe esp_bredr_tx_power_set will do what you are looking for? No amount of power is going to compensate for a bad antenna. Do you get decent signal strength with WiFi?
It's very valid point about esp_ble_tx_power_set and set after a connection is made. But second parameter point that I can set power for advertising and scanning (enum esp_ble_power_type_t ESP_BLE_PWR_TYPE_ADV = 9 ESP_BLE_PWR_TYPE_SCAN = 10 ESP_BLE_PWR_TYPE_DEFAULT = 11) and I can't catch where is connection if I need advertising power set. Antenna also very valid point and I think of it all the time. But I have no problem with WiFi I successfully connect to AP on the other flow in our building. And thank for esp_bredr_tx_power_set I try it. But it's seems to me that BR/EDR = Classic Bluetooth not BLE
@eltsov-da Hi, Could you finally find a way to do tx power adjustment? If yes guide me please. I have same problem.
Hi. It's seems to me it's set of 2 issues :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This stale issue has been automatically closed. Thank you for your contributions.
Hardware:
Board: TTGO LoRa OLED v1 Core Installation/update date: 30/07/2018 IDE name: Arduino IDE? Flash Frequency: 80Mhz Upload Speed: 921600
Description:
ble txPower allways -21 Try to change ble txPower in BLE_server.ino example. But in BLE_scan.ino got only txPower: -21 Most of all I interested in
Sketch:
BLE_server.ino example line 20 I try:
Debug
and also try:
but in Serial monitor BLE_scan.ino example I got:
And also it works not more then 1m distance