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 ad2adce

Browse filesBrowse files
joeybab3me-no-dev
authored andcommitted
Edit comments for clarity (espressif#478)
* Edit comments for clarity I was a little confused reading what this sketch did the first time so I attempted to edit these for clarity. * code edits as well Grammar fixes for some parts of the code as well
1 parent 1be6a5c commit ad2adce
Copy full SHA for ad2adce

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Copy file name to clipboardExpand all lines: libraries/SimpleBLE/examples/SimpleBleDevice/SimpleBleDevice.ino
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// Sketch shows how SimpleBLE to advertise the name of the device and change it on button press
16-
// Usefull if you want to advertise some short message
17-
// Button is attached between GPIO 0 and GND and modes are switched with each press
15+
// Sketch shows how to use SimpleBLE to advertise the name of the device and change it on the press of a button
16+
// Useful if you want to advertise some sort of message
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.