Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 30e2cac

Browse files
Merge pull request #373 from fabik111/fix-local-name-end
Clear advertising data when BLE end is called
2 parents 29bef40 + 910dd44 commit 30e2cac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/local/BLELocalDevice.cpp‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ void BLELocalDevice::end()
224224
digitalWrite(NINA_RESETN, LOW);
225225
#elif defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_GIGA) || defined(ARDUINO_OPTA)
226226
digitalWrite(BT_REG_ON, LOW);
227-
#endif
227+
#endif
228+
_advertisingData.clear();
229+
_scanResponseData.clear();
228230
}
229231

230232
void BLELocalDevice::poll()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /