Skip to content

Commit 6ea32b3

Browse files
RobertoRoberto
authored andcommitted
Transmision power
1 parent f9ad1e5 commit 6ea32b3

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/hardware/BLEMIDI_Client_ESP32.h

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,24 @@
3737
#define BLEMIDI_CLIENT_DEFAULT_NAME "BLEMIDI-CLIENT"
3838
#endif //Not modify
3939

40+
/*
41+
###### TX POWER #####
42+
*/
43+
/**
44+
* Set power transmision
45+
*
46+
* ESP_PWR_LVL_N12 // Corresponding to -12dbm Minimum
47+
* ESP_PWR_LVL_N9 // Corresponding to -9dbm
48+
* ESP_PWR_LVL_N6 // Corresponding to -6dbm
49+
* ESP_PWR_LVL_N3 // Corresponding to -3dbm
50+
* ESP_PWR_LVL_N0 // Corresponding to 0dbm
51+
* ESP_PWR_LVL_P3 // Corresponding to +3dbm
52+
* ESP_PWR_LVL_P6 // Corresponding to +6dbm
53+
* ESP_PWR_LVL_P9 // Corresponding to +9dbm Maximum
54+
*/
55+
56+
#define BLEMIDI_TX_PWR ESP_PWR_LVL_P9
57+
4058
/*
4159
###### SECURITY #####
4260
*/
@@ -394,7 +412,7 @@ bool BLEMIDI_Client_ESP32::begin(const char *deviceName, BLEMIDI_Transport<class
394412
NimBLEDevice::setSecurityAuth(BLEMIDI_CLIENT_SECURITY_AUTH);
395413

396414
/** Optional: set the transmit power, default is 3db */
397-
NimBLEDevice::setPower(ESP_PWR_LVL_P9); /** +9db */
415+
NimBLEDevice::setPower(BLEMIDI_TX_PWR); /** +9db */
398416

399417
myAdvCB.enableConnection = true;
400418
scan();

0 commit comments

Comments
 (0)