2021-10-25 20:04:55 +01:00

13 lines
331 B
Python

from pygatt.exceptions import BLEError
class BGAPIError(BLEError):
pass
class ExpectedResponseTimeout(BGAPIError):
def __init__(self, expected_packets, timeout):
super(ExpectedResponseTimeout, self).__init__(
"Timed out after %fs waiting for %s" % (
timeout or 0, expected_packets))