From ad2adce65ec26b1913fdb140cce2cc2fc219801c Mon Sep 17 00:00:00 2001 From: Joey Babcock Date: Sun, 2 Jul 2017 08:54:20 -0700 Subject: [PATCH] Edit comments for clarity (#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 --- .../examples/SimpleBleDevice/SimpleBleDevice.ino | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/SimpleBLE/examples/SimpleBleDevice/SimpleBleDevice.ino b/libraries/SimpleBLE/examples/SimpleBleDevice/SimpleBleDevice.ino index 1464fd5d..249363d4 100644 --- a/libraries/SimpleBLE/examples/SimpleBleDevice/SimpleBleDevice.ino +++ b/libraries/SimpleBLE/examples/SimpleBleDevice/SimpleBleDevice.ino @@ -12,15 +12,15 @@ // See the License for the specific language governing permissions and // limitations under the License. -// Sketch shows how SimpleBLE to advertise the name of the device and change it on button press -// Usefull if you want to advertise some short message -// Button is attached between GPIO 0 and GND and modes are switched with each press +// Sketch shows how to use SimpleBLE to advertise the name of the device and change it on the press of a button +// Useful if you want to advertise some sort of message +// Button is attached between GPIO 0 and GND, and the device name changes each time the button is pressed #include "SimpleBLE.h" SimpleBLE ble; void onButton(){ - String out = "BLE32 at: "; + String out = "BLE32 name: "; out += String(millis() / 1000); Serial.println(out); ble.begin(out); @@ -33,7 +33,7 @@ void setup() { Serial.print("ESP32 SDK: "); Serial.println(ESP.getSdkVersion()); ble.begin("ESP32 SimpleBLE"); - Serial.println("Press the button to change the device name"); + Serial.println("Press the button to change the device's name"); } void loop() {