Skip to content

Connect requests are not responding #8

@magallardo

Description

@magallardo

Hello,

I was able to get the code compiled and seems to be working ok until I call ble.Connect. After calling connect I don't get any response from the peripheral.

Also, I have noticed that I am getting events of type 42 but the code does not handle that event type.
2020/03/26 20:51:29 event: 42 xpc.Dict{"kCBAdvDataDeviceAddress":[]uint8{0x6c, 0xf9, 0x45, 0xc7, 0x5c, 0xbb}}. These events are comming even after I called ble.StopScanning.

Following is a sequence of what I am doing:

  1. call ble.init
  2. get an stateChange event (6) for powerOn. I call ble.StartScanning
  3. get a discover event (57) for several peripherals. I select one peripheral based on the name and call ble.Connect(peripheral.Uuid)
  4. After the connect command, the peripheral does not respond. From time to time, the peripheral will issue a 42 event.

Please advise if something else is required to be sent for getting a connection response.

Thanks,
Marcelo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions