update example

This commit is contained in:
Dorian Zedler 2020-10-09 12:34:56 +02:00
parent 4dd4fa3b51
commit 7f5ad16ba9
Signed by: dorian
GPG key ID: D3B255CB8BC7CD37

View file

@ -88,7 +88,7 @@
* *
* onFoundNewDevice: { * onFoundNewDevice: {
* console.log("Found a device: name: " + device.name + " address: " + device.address) * console.log("Found a device: name: " + device.name + " address: " + device.address)
* if(device.name === "ESP32 Chat Test") { * if(device.name === "My device name") {
* ble.stopScanningForDevices() * ble.stopScanningForDevices()
* ble.connectToDevice(device) * ble.connectToDevice(device)
* } * }