ESP32 Bluetooth central only getting one Bluetooth device at a time
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 :).
BLE Server for ESP32
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