← index #8226Issue #5600
Related · high · value 1.778
QUERY · ISSUE

ESP32 Bluetooth central only getting one Bluetooth device at a time

openby TheMrguilleropened 2022-01-29updated 2022-02-02
port-esp32

Hi,

I am new to micropython and I have some issues related to Bluetooth central. I am trying to connect two esp32 devices via Bluetooth, but it seems that my central device cannot detect my peripheral. I have checked it with my mobile found and i can connect to the peripheral. I have tried both example of this github and i get the same problem.

Can someone help me with this problem? I am also new in github, so please have some mercy :).

CANDIDATE · ISSUE

BLE Server for ESP32

closedby francescofactopened 2020-02-01updated 2020-02-03

Hi.
i just started with micropython. but i can't get a BLE server working on my ESP32 with micropython.
I want to connect to my esp32 via my phone with an app like "BLE IO".
I'm using ubluetooth and this is my code:

import bluetooth
bt = bluetooth.BLE()
bt.active(True)
bt.gap_advertise(1000)

but this goes into "OSError: [Errno 5] EIO". I can't understand how to do it.

i also tried to copy the example "bt_advertising", but if i edit the demo() as this:

def demo():
    payload = advertising_payload(name='micropython', services=[bluetooth.UUID(0x181A), bluetooth.UUID('6E400001-B5A3-F393-E0A9-E50E24DCCA9E')])
    print(payload)
    print(decode_name(payload))
    print(decode_services(payload))
    
    bt = bluetooth.BLE()
    bt.active(True)
    bt.gap_advertise(1000, adv_data=payload)

it always give me errorno 5

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied