Skip to content

Commit dbf6c38

Browse files
committed
Fix examples
1 parent 17b7e4d commit dbf6c38

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

examples/NimBLE_Client/NimBLE_Client.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ void setup() {
268268
NimBLEDevice::setSecurityAuth(/*BLE_SM_PAIR_AUTHREQ_BOND | BLE_SM_PAIR_AUTHREQ_MITM |*/ BLE_SM_PAIR_AUTHREQ_SC);
269269

270270
/** Optional: set the transmit power */
271-
NimBLEDevice::setPower(3); // 9dbm
271+
NimBLEDevice::setPower(3); /** 3dbm */
272272
NimBLEScan* pScan = NimBLEDevice::getScan();
273273

274274
/** Set the callbacks to call when scan events occur, no duplicates */

examples/NimBLE_Secure_Server/NimBLE_Secure_Server.ino

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ void setup() {
1717
Serial.begin(115200);
1818
Serial.println("Starting NimBLE Server");
1919
NimBLEDevice::init("NimBLE");
20-
#ifdef ESP_PLATFORM
21-
NimBLEDevice::setPower(ESP_PWR_LVL_P9); /** +9db */
22-
#else
23-
NimBLEDevice::setPower(9); /** +9db */
24-
#endif
20+
NimBLEDevice::setPower(3); /** +3db */
2521

2622
NimBLEDevice::setSecurityAuth(true, true, true); /** bonding, MITM, BLE secure connections */
2723
NimBLEDevice::setSecurityPasskey(123456);

0 commit comments

Comments
 (0)