current_hci_state.device_id = hci_get_route(NULL);if((current_hci_state.device_handle =hci_open_dev(current_hci_state.device_id)) <0) { current_hci_state.has_error = TRUE;snprintf(current_hci_state.error_message,sizeof(current_hci_state.error_message),"Could not open device: %s", s...
sock = _bt.hci_open_dev(device_id)returnsockexcept: debug("error accessing bluetooth device") exit(0) 开发者ID:circumstance,项目名称:wimpy,代码行数:7,代码来源:btscan.py 示例2: get_RSSI ▲点赞 7▼ defget_RSSI(addr):# Open an hci sockethci_sock = bluez.hci_open_dev() hci_fd = h...