You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be just me misusing the library (or Golang, for I am quite a beginner with the language still), but with next to no documentation for the lib I am not sure..
So I am doing the Connect() call from within the AdvHandler func of my Scan() call. I have tried using the same exact context.Context as well as a fresh new one (allocated new one per each Connect() call) but neither way seems to work. Sometimes it crashes like this, sometimes Connect() succeeds but then the whole program gets stuck on ble.ReadCharacteristic() call I am making, following the Connect() (and DiscoverProfile() etc).
I am running this on MacBook Pro PC, OSX Sierra 10.12.6, go version go1.8.1 darwin/amd64
The device I am trying to Connect() to is an iPhone6 with the latest iOS (10.3.2)
Matti
The text was updated successfully, but these errors were encountered:
To me it seems like Scan() and Connect() are interfering with each other, even if I do the Connect() in a new goroutine. Should I abort the Scan() (using a context.WithTimeout() ?) before making the Connects() to the devices found?
I'm getting the following error when calling ble.Connect():
This could be just me misusing the library (or Golang, for I am quite a beginner with the language still), but with next to no documentation for the lib I am not sure..
So I am doing the Connect() call from within the AdvHandler func of my Scan() call. I have tried using the same exact context.Context as well as a fresh new one (allocated new one per each Connect() call) but neither way seems to work. Sometimes it crashes like this, sometimes Connect() succeeds but then the whole program gets stuck on ble.ReadCharacteristic() call I am making, following the Connect() (and DiscoverProfile() etc).
I am running this on MacBook Pro PC, OSX Sierra 10.12.6, go version go1.8.1 darwin/amd64
The device I am trying to Connect() to is an iPhone6 with the latest iOS (10.3.2)
The text was updated successfully, but these errors were encountered: