Update BLE_client.ino (#3463)

fix typo
This commit is contained in:
takanotume24 2019-11-11 23:49:34 +09:00 committed by Me No Dev
parent b3085d4a8b
commit 8c4ca5a235

View File

@ -154,7 +154,7 @@ void loop() {
// Set the characteristic's value to be the array of bytes that is actually a string. // Set the characteristic's value to be the array of bytes that is actually a string.
pRemoteCharacteristic->writeValue(newValue.c_str(), newValue.length()); pRemoteCharacteristic->writeValue(newValue.c_str(), newValue.length());
}else if(doScan){ }else if(doScan){
BLEDevice::getScan()->start(0); // this is just eample to start scan after disconnect, most likely there is better way to do it in arduino BLEDevice::getScan()->start(0); // this is just example to start scan after disconnect, most likely there is better way to do it in arduino
} }
delay(1000); // Delay a second between loops. delay(1000); // Delay a second between loops.