_bluetooth.pyi 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. class BLE:
  2. def init(self) -> int: ...
  3. def pyi_test(self) -> int: ...
  4. def pyi_test2(self) -> int: ...
  5. def pyi_test3(self, connhandle : int,valuehandle:int) -> int: ...
  6. def test_call_some_name(self) -> int: ...
  7. def pyi_check_active(self) -> bool: ...
  8. def pyi_active(self,active : bool) -> bool: ...
  9. def stop_advertise(self) -> int: ...
  10. def set_adv_data(self, data:bytes, data_len: int ) -> int : ...
  11. def set_rsp_data(self, data:bytes, data_len: int ) -> int : ...
  12. def pyi_gap_connect(self, peer_addr : bytes , peer_addr_type : int,scan_duration_ms : int) -> int : ...
  13. def pyi_gap_disconnect(self , conn_handle :int) -> int : ...
  14. def advertise(self,addr : int, interval : int, connectable : bool ,adv_data:bytes, adv_data_len: int, adv_data_append:bool, rsp_data:bytes, rsp_data_len: int) -> int: ...
  15. def gatts_register_svcs(services_info : tuple, all_chr_count:int) -> int: ...
  16. def gap_stop_disc() -> int: ...
  17. def gap_disc(self, addr_mode : int, duration_ms:int, interval_us:int, window_us:int, active:bool) -> int: ...
  18. def setCallback(self, cb: any): ...
  19. def config_mac_get(self) -> str: ...
  20. def config_addr_mode_get(self) -> int :...
  21. def config_gap_name_get(self) -> str :...
  22. def config_gap_uuid_get(self) -> bytes :...
  23. def config_mtu_get(self) -> int:...
  24. def config_addr_rxbuf_get(self) -> int:...
  25. def config_bond_get(self) -> int:...
  26. def config_mitm_get(self) -> int:...
  27. def config_io_get(self) -> int:...
  28. def config_le_secure_get(self) -> int:...
  29. def config_mac_update(mac) -> int:...
  30. def config_addr_mode_update(addr_mode) -> int:...
  31. def config_gap_name_update(gap_name : str) -> int: ...
  32. def config_rxbuf_update(rxbuf : int) -> int:...
  33. def config_mtu_update(mtu : int) -> int:...
  34. def config_bond_update(bond : bool ) -> int:...
  35. def config_mitm_update(mitm : bool ) -> int:...
  36. def config_io_update(io : int ) -> int:...
  37. def config_gap_uuid_update(uuid : bytes,len : int) -> int:...
  38. def config_le_secure_update(le_secure : bool ) -> int:...
  39. def pyi_gatts_notify(conn_handle : int, value_handle : int, data:bytes ,data_size :int) -> int:...
  40. def pyi_gatts_indicate(conn_handle : int, value_handle : int, data:bytes ,data_size :int) -> int:...
  41. def gatts_chr_updated(chr_val_handle:int) -> int:...
  42. def pyi_gatts_show_local() -> int:...
  43. def gattc_dis_svcs(conn_handle : int ) -> int:...
  44. def gattc_dis_svcs_by_uuid(conn_handle : int,uuid: bytes , len:int) -> int:...
  45. def gattc_dis_chrs(conn_handle : int,start_handle : int, end_handle : int) -> int:...
  46. def gattc_dis_chrs_by_uuid(conn_handle : int, start_handle : int, end_handle : int, uuid : bytes, len:int) -> int:...
  47. def gattc_dis_dscs(conn_handle : int,start_handle : int, end_handle : int) -> int:...
  48. def pyi_gattc_read(conn_handle : int, value_handle : int) -> int:...
  49. def gattc_write_with_no_rsp(conn_handle : int , value_handle : int, data : str ,data_len : int) -> int:...
  50. def gattc_write_with_rsp(conn_handle : int , value_handle : int, data : str , data_len : int) -> int:...
  51. def pyi_gattc_exchange_mtu(conn_handle : int) -> int:...
  52. def pyi_gattc_subscribe(conn_handle : int,value_handle : int,subscribe : int) -> int:...
  53. # def pyi_gattc_subscribe_notify(conn_handle : int,value_handle : int,subscribe : bool) -> int:...
  54. # def pyi_gattc_subscribe_indicate(conn_handle : int,value_handle : int, subscribe : bool) -> int:...