Search found 26 matches

by net0040
Sat Nov 09, 2019 1:23 am
Forum: ESP32 boards
Topic: About BLE.gap_connect(esp32-based ubluetooth)
Replies: 44
Views: 30897

Re: About BLE.gap_connect(esp32-based ubluetooth)

It works. >>> %Run -c $EDITOR_CONTENT >>> 0 b'\xf4^\xab\x91k\x97' b'\x02\x01\x06\x05\x02\r\x18\x0f\x18' 0 b'\xf4^\xab\x91k\x97' b'\x02\x01\x06\x05\x02\r\x18\x0f\x18' 0 b'\xf4^\xab\x91k\x97' b'\x02\x01\x06\x05\x02\r\x18\x0f\x18' 0 b'\xf4^\xab\x91k\x97' b'\x02\x01\x06\x05\x02\r\x18\x0f\x18' 0 b'\xf4^\...
by net0040
Fri Nov 08, 2019 3:33 pm
Forum: ESP32 boards
Topic: About BLE.gap_connect(esp32-based ubluetooth)
Replies: 44
Views: 30897

Re: About BLE.gap_connect(esp32-based ubluetooth)

>>> exec(open('./hrm1107.py').read(),globals())
GAP procedure initiated: stop advertising.
GAP procedure initiated: discovery; own_addr_type=0 filter_policy=0 passive=1 limited=0 filter_duplicates=0 duration=10000ms
by net0040
Fri Nov 08, 2019 3:06 pm
Forum: ESP32 boards
Topic: About BLE.gap_connect(esp32-based ubluetooth)
Replies: 44
Views: 30897

Re: About BLE.gap_connect(esp32-based ubluetooth)

hi, Yes, sorry, I haven't gotten around to the central role examples yet. By far the easiest way is to do a scan, and use the address type and address returned during the scan. from micropython import const _IRQ_SCAN_RESULT = const(1 << 4) _IRQ_SCAN_COMPLETE = const(1 << 5) def adv_decode(adv_type,...
by net0040
Fri Nov 08, 2019 1:11 pm
Forum: ESP32 boards
Topic: About BLE.gap_connect(esp32-based ubluetooth)
Replies: 44
Views: 30897

Re: About BLE.gap_connect(esp32-based ubluetooth)

jimmo wrote:
Fri Nov 08, 2019 10:22 am
And the address should be printed on the device, so once you know the right address type to use, then you can also just hard-code the address if you want.

I will add some documentation for the address types.
jimmo,I will try your code.thanks
by net0040
Fri Nov 08, 2019 6:11 am
Forum: Programs, Libraries and Tools
Topic: New version of Thonny IDE
Replies: 7
Views: 7320

Re: New version of Thonny IDE

Hi everybody! I just released a new version of Thonny IDE with several improvements related to MicroPython: https://github.com/thonny/thonny/releases/tag/v3.2.3 Usage instructions are here: https://github.com/thonny/thonny/wiki/MicroPython Looking forward to your feedback! Best regards Aivar Great,...
by net0040
Fri Nov 08, 2019 5:07 am
Forum: ESP32 boards
Topic: About BLE.gap_connect(esp32-based ubluetooth)
Replies: 44
Views: 30897

About BLE.gap_connect(esp32-based ubluetooth)

Hello everyone, I'm trying the esp32-based ubluetooth library. The example on github is based on the bluetooth library and is not an example of a Central Role (GATT Client). BLE.gap_connect (addr_type, addr, scan_duration_ms s 2000) How to get the addr_type and addr of ble peripheral devices(such as...