7a583419c5
BlessedConnect.java: make sure gio shared library is loaded before calling native methods.
gmp2020-02-04 17:36:39 -05:00
2d7594514c
Fixes to depjars/build.go
gmp2019-12-30 11:26:24 -05:00
52217c3f6a
Add Timber license. Add depjars/ and go:generate commands to build Java dependencies. Bug fix in retrievePeripheral so that we do not zero out the reference to the Java Peripheral object.
gmp2019-12-13 12:35:36 -05:00
2edbeb8714
Revert "Working Android version using Blessed library."
gmp2019-12-06 14:03:27 -05:00
56d6e87ef3
Revert "Doc updates, add "wantScan" to BleConnect.java so scan starts"
gmp2019-12-06 14:00:55 -05:00
57f19407dd
Merge branch 'master' into blessed
gmp2019-12-06 13:59:07 -05:00
3bc712870d
Improve handling of peripheral disconnections and some refactoring.
gmp2019-12-05 08:49:41 -05:00
e7f82ac9e7
Working Android version using Blessed library.
gmp2019-12-04 17:06:14 -05:00
4cdaceda76
Working Android version using Blessed library.
gmp2019-12-04 17:06:14 -05:00
fc0cab1ee8
Further debuging version.
gmp2019-12-04 16:09:54 -05:00
4db9b4a5ed
Conversion to Blessed library for Android -- interim check-in, notifications do not work.
gmp2019-12-04 14:47:56 -05:00
2af636b946
Doc updates, add "wantScan" to BleConnect.java so scan starts automatically upon grant of permissions or device enable.
gmp2019-11-27 11:46:04 -05:00
0ab45a1d9d
Update Gio verion (change location of permissions). Put the java file here and add go:generate commands to create the jar file.
gmp2019-11-01 14:48:17 -04:00
4e4c071697
Add gioui.org/permission/bluetooth and EnableBluetooth() function.
gmp2019-10-30 12:09:16 -04:00
820186e132
On Android startup, obtain a Bluetooth adapter and check if it is enabled.
gmp2019-10-28 15:18:18 -04:00
f036c5e134
Further restructuring and add stub implementation for Android.
gmp2019-10-28 12:43:33 -04:00
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.
gmp2019-10-28 11:39:05 -04:00
c911bbb547
Move BLE type into ble.go.
gmp2019-10-28 11:21:14 -04:00
2d4f106dd7
Add ble.go to factor out platform-independent code.
gmp2019-10-28 09:25:23 -04:00
5955e369e4
Add the Peripheral and the Characteristic to UpdateValueEvent.
gmp2019-10-25 14:59:13 -04:00
fbb58a8d99
Add CancelConnection() and Disconnect().
gmp2019-10-25 14:03:20 -04:00
b87fea7fb3
Do not connect to peripherals with outstanding connection attempts.
gmp2019-10-25 13:30:11 -04:00
ec02bc7bcc
Some debug output, and turn off BLE.wantScan when scanning starts.
gmp2019-10-25 09:09:54 -04:00
f53dd7481a
Return subscribed characteristic values as []byte in UpdateValueEvent{}
gmp2019-10-24 18:30:02 -04:00