(self)
Reenable all notifications and indications for uuids that were
        previously subscribed to.
        This has to be called after a connection loss and subsequent reconnect.
Reenable all notifications and indications for uuids that were
        previously subscribed to.
        This has to be called after a connection loss and subsequent reconnect.
Reenable all notifications and indications for uuids that were previously subscribed to . This has to be called after a connection loss and subsequent reconnect .
def resubscribe_all(self):
        """
        Reenable all notifications and indications for uuids that were
        previously subscribed to.
        This has to be called after a connection loss and subsequent reconnect.
        """

        for uuid in self._subscribed_uuids:
            value_handle, characteristic_config_handle = (
                self._notification_handles(uuid)
            )

            properties = bytearray([
                0x2 if self._subscribed_uuids[uuid] else 0x1,
                0x0
            ])

            with self._lock:
                self.char_write_handle(
                    characteristic_config_handle,
                    properties,
                    wait_for_response=True
                )
                log.info("Resubscribed to uuid=%s", uuid)
def resubscribe_all ( self ) : for uuid in self . _subscribed_uuids : value_handle , characteristic_config_handle = ( self . _notification_handles ( uuid ) ) properties = bytearray ( [ 0x2 if self . _subscribed_uuids [ uuid ] else 0x1 , 0x0 ] ) with self . _lock : self . char_write_handle ( characteristic_config_handle , properties , wait_for_response = True ) log . info ( "Resubscribed to uuid=%s" , uuid )