aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/io/trygvis/soilmoisture/SmDevice.java
Commit message (Collapse)AuthorAgeFilesLines
* o Supporting re-activation of the MainActivity. Must initialize the local ↵Trygve Laugstøl2015-06-291-0/+8
| | | | data with the device list if it is already in the 'ready' state.
* o Using new code for GET_VALUE.Trygve Laugstøl2015-06-291-3/+7
|
* o Adding 'recently seen' on BtDevice. Updated when scanning.Trygve Laugstøl2015-01-271-2/+2
| | | | | | o Removing BtScanResult, it was never used. o Getting MainActivity to listen on device property changed so the UI is properly updated. o Adding a status bar with color to indicate if the device is available, connected or not seen.
* o Adding a way to append promises to promises.Trygve Laugstøl2015-01-201-1/+16
| | | | | o Reading each sensors name when probing a device. o Enabling probing on long presses on already probed devices. Is probably useful to update the local information when other handsets has updated the device's values.
* BtPromise: Adding a distinction between successful and failure.1.0Trygve Laugstøl2015-01-181-0/+21
| | | | | | | 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 Trying to fix issues where there is a miss match between the clicked index ↵Trygve Laugstøl2015-01-171-0/+10
| | | | and the item actually clicked.
* o Not disconnecting when the promise is done.Trygve Laugstøl2015-01-171-1/+1
| | | | | o All user code can assume that they're already connected to the device, simplifying the life cycle. o When starting, send a 'new device' even for all stored devices.
* o Reading values from the soil sensor.Trygve Laugstøl2015-01-111-11/+25
| | | | | | 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-0/+113
| | | | | | devices that give you [disconnect, connect] events when connecting. Yay. o Reading meta data from the Soil Moisture device.
* o Adding a method to run a transaction in the BtService's database.Trygve Laugstøl2015-01-041-3/+3
|
* o Adding SoilMonitors support in core and view. Still more to do.Trygve Laugstøl2015-01-041-3/+8
|
* o Getting closer to something that actually work.Trygve Laugstøl2015-01-021-3/+32
|
* o Initial import of Soil Moisture app.Trygve Laugstøl2014-12-311-0/+26