def _register_remote_host_supported_features_notification(self): """ REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION event will be sent when a device sends remote name request """ if self.remote_host_supported_features_notification_registered: return msg = hci_facade.EventRequest(code=int( hci_packets.EventCode.REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION)) self.device.hci.RequestEvent(msg) self.remote_host_supported_features_notification_registered = True
def register_for_le_event(self, event_code): msg = hci_facade.EventRequest(code=int(event_code)) self.cert.hci.RequestLeSubevent(msg)
def register_for_le_events(self, *event_codes): for event_code in event_codes: self.device.hci.RequestLeSubevent(hci_facade.EventRequest(code=int(event_code)))