aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/io/trygvis/android/bt/BtCallback.java
Commit message (Collapse)AuthorAgeFilesLines
* o Major refactoring on the BtPromise, mainly internal. Renaming BtPromise ↵Trygve Laugstøl2015-01-281-73/+0
| | | | to BtSequence and BtSequencer.
* BtPromise: Letting the finally know if the promise was a success or failure.Trygve Laugstøl2015-01-181-1/+1
| | | | | | SM: adding a toast callback so the activity can show a toast message. Needed to make sure the toast comes from the correct thread. Can be called from the BT callback thread.
* BtPromise: Adding a distinction between successful and failure.1.0Trygve Laugstøl2015-01-181-1/+1
| | | | | | | o Chain can now call fail() instead of stop() to signal failure. o The finally handlers can be changed to get this info later. o Should probably make all callbacks take the BtDevice as a callback instead of BluetoothGatt and make the gatt instance available through the device. This way state can be kept in the device's tag. BtPromise: always discover services when operating inside a connection.
* o Major refactoring of the BT promise.Trygve Laugstøl2015-01-161-0/+8
|
* o Reading values from the soil sensor.Trygve Laugstøl2015-01-111-3/+9
| | | | | | o Rewrote the database schema to match the new device+sensors model. o Storing samples in the database. o To be able to reuse BT callbacks, added a way to always to directly to the next step instead of waiting for an event.
* o Adding a way to prepend callbacks on the promise's queue. Needed for ↵Trygve Laugstøl2015-01-041-9/+11
| | | | | | devices that give you [disconnect, connect] events when connecting. Yay. o Reading meta data from the Soil Moisture device.
* o Getting closer to something that actually work.Trygve Laugstøl2015-01-021-0/+4
|
* o Initial import of Soil Moisture app.Trygve Laugstøl2014-12-311-0/+53