Commit Graph

27 Commits

Author SHA1 Message Date
Greg 3bc712870d Improve handling of peripheral disconnections and some refactoring. 2019-12-05 08:49:41 -05:00
Greg e7f82ac9e7 Working Android version using Blessed library. 2019-12-04 17:25:10 -05:00
Greg fc0cab1ee8 Further debuging version. 2019-12-04 16:09:54 -05:00
Greg 4db9b4a5ed Conversion to Blessed library for Android -- interim check-in,
notifications do not work.
2019-12-04 14:47:56 -05:00
Greg 2af636b946 Doc updates, add "wantScan" to BleConnect.java so scan starts
automatically upon grant of permissions or device enable.
2019-11-27 11:46:04 -05:00
Greg 7223b8c380 Documentation 2019-11-27 11:11:42 -05:00
Greg 321b94a486 Working Android implementation. 2019-11-27 10:44:37 -05:00
Greg 99bcd1f4fb Add discoverCharacteristics() for Android. 2019-11-22 23:33:45 -05:00
Greg 86e724cc8c Partial android implementation, including Enable(), readyToScan(),
scan(), stopScan(), connectPeripheral(), cancelConnection(), and
DiscoverServices().
2019-11-22 16:15:02 -05:00
Greg 829baedeac Add BleUtil.jar. 2019-11-01 14:59:03 -04:00
Greg 0ab45a1d9d Update Gio verion (change location of permissions). Put the java file
here and add go:generate commands to create the jar file.
2019-11-01 14:48:17 -04:00
Greg 4e4c071697 Add gioui.org/permission/bluetooth and EnableBluetooth() function. 2019-10-30 12:09:16 -04:00
Greg 820186e132 On Android startup, obtain a Bluetooth adapter and check if it is
enabled.
2019-10-28 15:18:18 -04:00
Greg f036c5e134 Further restructuring and add stub implementation for Android. 2019-10-28 12:43:33 -04:00
Greg 206bd70461 Prepare for Android port -- move CancelConnection into ble.go and
re-arrange functions in ble_darwin.go into API calls, Core Bluetooth
callbacks and internal convenience functions.
2019-10-28 11:39:05 -04:00
Greg c911bbb547 Move BLE type into ble.go. 2019-10-28 11:21:14 -04:00
Greg 2d4f106dd7 Add ble.go to factor out platform-independent code. 2019-10-28 09:25:23 -04:00
Greg 5955e369e4 Add the Peripheral and the Characteristic to UpdateValueEvent. 2019-10-25 14:59:13 -04:00
Greg fbb58a8d99 Add CancelConnection() and Disconnect(). 2019-10-25 14:03:20 -04:00
Greg b87fea7fb3 Do not connect to peripherals with outstanding connection attempts. 2019-10-25 13:30:11 -04:00
Greg ec02bc7bcc Some debug output, and turn off BLE.wantScan when scanning starts. 2019-10-25 09:09:54 -04:00
Greg f53dd7481a Return subscribed characteristic values as []byte in
UpdateValueEvent{}
2019-10-24 18:30:02 -04:00
Greg 822b3529c0 Add gatt package. Add DiscoverServiceEvent and DiscoverCharacteristic
event.
2019-10-24 18:18:27 -04:00
Greg 64b684e419 Add connection tracking and timeouts. 2019-10-24 17:00:54 -04:00
Greg c91c83de9c Connect to peripherals by UUIDString. Eliminate globals for central
manager and delegate.
2019-10-24 08:59:25 -04:00
Greg 0424b70ef3 Add DiscoverServices() and interlocks to check central manager
ready state.
2019-10-23 19:28:43 -04:00
Greg 133b0883e3 Initial commit. 2019-10-23 18:28:19 -04:00