Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix examples #798

Merged
merged 1 commit into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading