Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
h2zero committed Dec 14, 2024
1 parent 17b7e4d commit dbf6c38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/NimBLE_Client/NimBLE_Client.ino
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ void setup() {
NimBLEDevice::setSecurityAuth(/*BLE_SM_PAIR_AUTHREQ_BOND | BLE_SM_PAIR_AUTHREQ_MITM |*/ BLE_SM_PAIR_AUTHREQ_SC);

/** Optional: set the transmit power */
NimBLEDevice::setPower(3); // 9dbm
NimBLEDevice::setPower(3); /** 3dbm */
NimBLEScan* pScan = NimBLEDevice::getScan();

/** Set the callbacks to call when scan events occur, no duplicates */
Expand Down
6 changes: 1 addition & 5 deletions examples/NimBLE_Secure_Server/NimBLE_Secure_Server.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ void setup() {
Serial.begin(115200);
Serial.println("Starting NimBLE Server");
NimBLEDevice::init("NimBLE");
#ifdef ESP_PLATFORM
NimBLEDevice::setPower(ESP_PWR_LVL_P9); /** +9db */
#else
NimBLEDevice::setPower(9); /** +9db */
#endif
NimBLEDevice::setPower(3); /** +3db */

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

0 comments on commit dbf6c38

Please sign in to comment.