Closed lairdrt closed 1 year ago
I believe the exceptions being thrown in my posting above were due to the fact that I had, when running under the Visual Studio debugger, "Break on exception" marked in a debug dialog box. So an exception was being thrown down deep (before the ::Safe call) and was being trapped by the debugger - it appears as though the ::Safe call is doing what it is supposed to do. Sorry about that...
Hey @samedayrules, thanks for the update! I'll mark this one as resolved, but let me know if it happens again.
From the docs:
I'm using the Safe layer and the peripheral.write() method is throwing an exception when the BT server fails to execute the write operation in a timely manner. Relevant parts of my code (which works fine when the server responds in a timely manner):
Exception indicates:
'The attribute request that was requested has encountered an error that was unlikely, and therefore could not be completed as requested.'
Full exception dump:
Am I using the Safe methods incorrectly? Shouldn't they be catching this exception?