• 2 Votes
    1 Posts
    567 Views
    No one has replied
  • type object 'Bluetooth' has no attribute 'BLE'

    LoPy bluetooh lopy bluetoorh bl
    7
    0 Votes
    7 Posts
    2k Views
    M
    @jmarcelino What is bluetooth.init(id=0, mode=Bluetooth.BLE, antenna=None) used for then? I also noticed when I was trying to run it, that Bluetooth.BLE as the mode did not work at all.
  • Bluetooth BL Client won't connect

    WiPy 2&3 wipy 2.0 bluetoorh bl
    3
    0 Votes
    3 Posts
    2k Views
    S
    @tenspot said in Bluetooth BL Client won't connect: bt.connect from network import LoRa from network import Bluetooth import machine import socket import pycom import binascii bluetooth = Bluetooth() bluetooth.start_scan(10) adv = None while True: adv = bluetooth.get_adv() #if adv and bluetooth.resolve_adv_data(adv.data, Bluetooth.ADV_NAME_CMPL) == 'JonathanBLE': try: #print(bluetooth.resolve_adv_data(adv.data, Bluetooth.ADV_APPEARANCE)) bluetooth.connect (b'\xe0\x00\xc3\xca\x16\xf9') #JonathanBLE mac adress? Is this the wrong way to connect using the mac adress.. ? I connect to the BLE with the name and it connect in seconds... but I want to be able to connect to devices using there mac adress instead... Im using LOPY btw ... and I want to try send data between 2 LOPY decies with BLE...