ecc1 / ble

Go package for communicating with Bluetooth Low Energy peripheral devices
MIT License
31 stars 14 forks source link

what is the api for disconnecting sensors? #4

Closed saurabh-newera closed 7 years ago

saurabh-newera commented 7 years ago

can i use conn.Close() for disconnecting sensors?

ecc1 commented 7 years ago

conn.Close will just close the local dbus connection; it won't affect connected devices.

I just added the device Disconnect method in https://github.com/ecc1/ble/commit/379c4f6898aa234ca0f4571f25e5ee31f9070e17

I don't have an easy way to test it, so please let me know whether it works.

ecc1 commented 7 years ago

I was able to test it (added an example disconnect program), so I'm closing this.

saurabh-newera commented 7 years ago

api for disconnecting sensor is working. Thank you