Skip to content

Commit a7a7b88

Browse files
joeybab3Raienryu97
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 96e4a9d commit a7a7b88

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libraries/SimpleBLE/examples/SimpleBleDevice/SimpleBleDevice.ino

+5-5
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)