-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
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:
- call ble.init
- get an stateChange event (6) for powerOn. I call ble.StartScanning
- get a discover event (57) for several peripherals. I select one peripheral based on the name and call ble.Connect(peripheral.Uuid)
- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels