Heerkog / MicroPythonBLEHID

Human Interface Device (HID) over Bluetooth Low Energy (BLE) GATT library for MicroPython.
GNU General Public License v3.0
225 stars 30 forks source link

How does the ESP32 series support automatic reconnection of paired devices #21

Closed dahanzimin closed 1 week ago

dahanzimin commented 1 week ago

Hello, may I ask if the ESP32 analog keyboard has been paired with a WIN10 computer, but after disconnecting Bluetooth, it cannot automatically reconnect MPY: soft reboot no secrets available Server created BLE on Registering services Writing service characteristics h_mod = 21 h_ser = 23 h_fwr = 25 h_hwr = 27 h_swr = 29 h_man = 31 h_pnp = 33 h_bat = 36 Writing device information service characteristics Writing battery service characteristics h_info = 42 h_hid = 44 h_ctrl = 46 h_rep = 48 h_d1ref = 51 h_proto = 53 Writing hid service characteristics Advertiser created: mouse with services: [UUID(0x1812)] Server started Started advertising Central connected: 1 Notify with report: (1, -100, -100, 0) Central disconnected: 1 Started advertising Central connected: 1 Started advertising Central disconnected: 1 Started advertising

Heerkog commented 1 week ago

Which version of MicropythonBLEHID are you using?

Which version of Micropython?

Also, it's definitely a digital keyboard!

dahanzimin commented 1 week ago

MicropythonBLEHID : Master main branch Micropython : v1.22.0 Hardware : ESP32C3 The keyboard and mouse currently being tested are unable to automatically reconnect

Heerkog commented 1 week ago

I can confirm it works perfectly with version Micropython 1.23. Please upgrade to 1.23.