MicroPythonBLEHID icon indicating copy to clipboard operation
MicroPythonBLEHID copied to clipboard

ble don't connect automatic

Open jd3096-mpy opened this issue 3 years ago • 0 comments

The latest esp32 micropython code support gap_pair() now So I try to pair ble device to win10 computer The first time,it can be paired successful

Server created get secret: 10 0 b'irk' set secret: (10, b'irk') b'\x184\x03\xaa_\xd0\xa6\\xa6l-\x95[4\xd7\x81' BLE on Registering services Writing service characteristics Writing device information service characteristics Writing battery service characteristics Writing hid service characteristics Advertiser created: Keyboard with services: [UUID(0x1812)] Server started Started advertising Central connected: 1 encryption update 1 1 0 1 16 Connection update Connection update Unhandled IRQ event: 4 Unhandled IRQ event: 4 Unhandled IRQ event: 4 Unhandled IRQ event: 4 Unhandled IRQ event: 4 Unhandled IRQ event: 4 Unhandled IRQ event: 4 Unhandled IRQ event: 4 Keyboard changed by Central

but when i restart esp32 and try to auto connect again, it doesn't work,it disconnect instantly after Central connected

Server created get secret: 10 0 b'irk' set secret: (10, b'irk') b'\xef,Vs"36>\xc3j$\xa4\xc1\xf9\xc30' BLE on Registering services Writing service characteristics Writing device information service characteristics Writing battery service characteristics Writing hid service characteristics Advertiser created: Keyboard with services: [UUID(0x1812)] Server started Started advertising Central connected: 1 Central disconnected: 1` So,what can i do to solove this problem

jd3096-mpy avatar Jul 26 '22 04:07 jd3096-mpy