https://toitlang.org/ logo
I get a segmentation fault using MacOS with BLE on...
# general
z
I get a segmentation fault using MacOS with BLE on host - trying to connect to and then disconnect from a BLE device:
Copy code
class Night: 
  adapter/ble.Adapter := ble.Adapter
  remote_device/ble.RemoteDevice := ?
  identifier/string := ?

  constructor: 
    central := adapter.central
    device := find_by_name central DEV_NAME
    advertisement := ble.Advertisement device.data.data-blocks --no-check-size
    print advertisement.name
    identifier = device.identifier
    remote_device = central.connect identifier

n = Night
n.remote-device.close 
n.remote_device.close
/.cache/jaguar/sdk/bin/toit.run: Segmentation fault: 11