aboutsummaryrefslogtreecommitdiff
path: root/apps/SoilMoisture.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Mac:HEADmasterTrygve Laugstøl2018-12-201-1/+1
| | | | | | | | o Using more natural byte ordering in the code. No external effect. o Using global ==, != and < operators instead of in-class operators for better compatibility with STL. ByteBuffer: o Renaming setPosition() to setCursor().
* o Starting to handle notifications and indicationsTrygve Laugstøl2018-11-231-8/+8
| | | | | | Cleaning up: o Using more of the shared_ptr typedefs. o Adding code styles used by CLion.
* o Working enabling of notifications.Trygve Laugstøl2018-11-221-2/+2
|
* ble-read-characteristic: working READ mode, starting on NOTIFY.Trygve Laugstøl2018-11-191-6/+4
|
* ByteBuffer:Trygve Laugstøl2018-11-191-32/+37
| | | | | | o Reducing silliness, no allocations by ByteBuffer. o Create StaticByteBuffer as a nice one-liner to create a buffer. LinuxBluetooth: methods that want a buffer needs to pass it in, ByteBuffer is not allocating anymore.
* Major overhaul of BLE code:Trygve Laugstøl2018-09-051-1/+2
| | | | | | | o Starting to remove shared_ptr. The code shouldn't be shared between threads, any thread safety will have to be built on the outside. o Better service discovery, don't fail when there are multiple requests that have to be done. o AttributeData was buggy, now it is just less than ideal. o Much better ByteBuffer. Now it is a simple view + cursor.
* Fixing lots of small nits:Trygve Laugstøl2018-08-301-8/+8
| | | | | o boost::uuid didn't give much, use our own and add new short uuid type. o Fixing nits from clang-tidy.
* Soil Moisture: Adding support for controlling lights.Trygve Laugstøl2016-04-121-15/+35
| | | | | Bluetooth: refectorying, trying to be more c++ idiomatic and modern. SM/Diller: adding bluetooth to Diller bridge.
* o Fixing off-by-one error when reading device name.Trygve Laugstøl2016-02-141-1/+5
|
* o Overhaul of the bluetooth code.Trygve Laugstøl2015-07-261-8/+56
| | | | | | - Adding support for reading FLOAT (specified in IEEE 11073-20601) values from a bluetooth device. - More shared pointers to help keep track of the object's lifecycle. Makes sure that the connections are released back to Linux, Linux is way to sensitive with crashing applications. o Adding support for reading the temperature sensors from the SoilMoisture device.
* o Going back to a bunch of cpp files instead of launcher+bunch of header ↵Trygve Laugstøl2015-07-191-2/+1
| | | | files. This ends up with an easier build file and faster builds with CMake's "OBJECT" library type.
* o Applying clang-format to all apps.Trygve Laugstøl2015-07-191-38/+26
|
* SoilMoisture:Trygve Laugstøl2015-06-211-2/+3
| | | | o Updating for changed get_value struct.
* SoilMoisture:Trygve Laugstøl2015-06-211-0/+12
| | | | | | o Adding getName(). sm-get-value: o More cleanup.
* o Trying to make the Bluetooth API more C++ idiomatic, a GATT connection has ↵Trygve Laugstøl2015-06-211-7/+7
| | | | | | | the same lifecycle as a BluetoothGatt. sm-get-value: o Better error handling.
* o Renaming trygvis::soil_moisture to trygvis::sample.Trygve Laugstøl2015-03-221-1/+1
|
* o Formatting.Trygve Laugstøl2015-03-081-3/+2
|
* o Starting a new class for all SoilMoisture GATT stuff.Trygve Laugstøl2015-02-221-0/+121