tryfix
This commit is contained in:
parent
ad93fb5bdb
commit
62e1d1c632
@ -88,7 +88,7 @@ void loop() {
|
||||
}
|
||||
|
||||
// Register callback for remote characteristic (receive channel)
|
||||
Serial.println("Get BMS receive characteristic...");
|
||||
Serial.println("Register callback for remote characteristic...");
|
||||
if (pRemoteCharacteristic_rx->canNotify()){
|
||||
pRemoteCharacteristic_rx->registerForNotify(MyNotifyCallback);
|
||||
}else{
|
||||
@ -152,6 +152,7 @@ void loop() {
|
||||
}
|
||||
}
|
||||
Serial.println("Disconnect");
|
||||
pRemoteCharacteristic_rx->unregisterForNotify();
|
||||
pClient->disconnect();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user