libblepp icon indicating copy to clipboard operation
libblepp copied to clipboard

Timeout if no connection

Open decay29 opened this issue 5 years ago • 0 comments

So, if I run the temperature example and do not connect a thermometer within about a minute I get

error 1570640902.713533: Error on line: 296 (src/blestatemachine.cc): Operation now in progress terminate called after throwing an instance of 'std::logic_error' what(): Trying to read socket while connecting Aborted

In my own code, I catch the exception and reconnect, but then it seems to give up after the second attempt.

decay29 avatar Oct 09 '19 17:10 decay29