Open jerom987 opened 4 years ago
anyone?
Hello @jerom987 and @mo-norant,
The problem was here that when you try to change value of Client, it will send an indication, but in case Client is still not connected, this sending will be failed. I modified code to send indication only if Client is already connected:
I am working on merging this fix into the next release.
Best regards, Máté
Any update on this?
For anyone in the future: I worked around this by just try
-except
ing the call to the function (and no nothing in the except). As far as I can tell, this shouldn't break anything.
Using LoPy4 release=1.20.2.rc3, version=v1.11-2037465
I have following code:
I get following error when changing the value (by running
btchr_AI1.value(1234)
)OSError: Erorr while sending BLE indication/notification
Error originates from following code: https://github.com/pycom/pycom-micropython-sigfox/blob/4d3322a60501cac1a06558a0c5c816e198570888/esp32/mods/modbt.c#L1344