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

Appearance settings

Commit c198222

Browse filesBrowse files
authored
code edits as well
Grammar fixes for some parts of the code as well
1 parent 0839217 commit c198222
Copy full SHA for c198222

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎libraries/SimpleBLE/examples/SimpleBleDevice/SimpleBleDevice.ino

Copy file name to clipboardExpand all lines: libraries/SimpleBLE/examples/SimpleBleDevice/SimpleBleDevice.ino
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515
// Sketch shows how to use SimpleBLE to advertise the name of the device and change it on the press of a button
1616
// Useful if you want to advertise some sort of message
17-
// Button is attached between GPIO 0 and GND, and the name changes with each button press
17+
// Button is attached between GPIO 0 and GND, and the device name changes each time the button is pressed
1818

1919
#include "SimpleBLE.h"
2020
SimpleBLE ble;
2121

2222
void onButton(){
23-
String out = "BLE32 at: ";
23+
String out = "BLE32 name: ";
2424
out += String(millis() / 1000);
2525
Serial.println(out);
2626
ble.begin(out);
@@ -33,7 +33,7 @@ void setup() {
3333
Serial.print("ESP32 SDK: ");
3434
Serial.println(ESP.getSdkVersion());
3535
ble.begin("ESP32 SimpleBLE");
36-
Serial.println("Press the button to change the device name");
36+
Serial.println("Press the button to change the device's name");
3737
}
3838

3939
void loop() {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.