How to use the able.dispatcher.BLEError function in able

To help you get started, we’ve selected a few able examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github b3b / able / able / dispatcher.py View on Github external
def _set_ble_interface(self):
        self._ble = BLEError('BLE is not implemented for platform')
github b3b / able / able / dispatcher.py View on Github external
def on_error(self, msg):
        """Error handler

        :param msg: error message
        """
        self._ble = BLEError(msg)  # Exception for calls from another threads
        raise Exception(msg)