ESP32: Setting Bluetooth TX power when initalizing BLE
I had trouble connecting to a Bluetooth master running on an ESP32. After about 4m I couldn't get a reliable connection anymore.
After trying out different ESP32's and external antennas, I run across the following forum post:
https://forum.micropython.org/viewtopic.php?t=7733#p62651
He is increasing the Bluetooth power directly in the init function with the following two commands:
esp_ble_tx_power_set(ESP_BLE_PWR_TYPE_DEFAULT, ESP_PWR_LVL_P9);
esp_ble_tx_power_set(ESP_BLE_PWR_TYPE_ADV, ESP_PWR_LVL_P9);
And that actually solved the problem. Not sure what the default Bluetooth TX power is, but would there be a chance that you can set the TX power from the bluetooth init-function inside of MicroPython?
Ble, read more 20 bytes esp32 wroom32d. MTU not work
Hello, Sorry for my English.
I am making a connection to a blutooth BMS and I need to send a command to receive via notify that I have the data.
The thing is, I only get 20 bytes.
I don't know what else to change. I am not very knowledgeable in esp32 but I have been trying for many days to make it connect and now I have succeeded but I do not get out of these 20 reception bytes.
If anyone knows I would appreciate it.
regards