aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Mac:HEADmasterTrygve Laugstøl2018-12-209-50/+108
| | | | | | | | 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 Trying to improve compatibility with some feature checks.Trygve Laugstøl2018-11-2310-19/+89
| | | | o Misc nits.
* o Starting to handle notifications and indicationsTrygve Laugstøl2018-11-2311-71/+165
| | | | | | Cleaning up: o Using more of the shared_ptr typedefs. o Adding code styles used by CLion.
* o Compiling everything again.Trygve Laugstøl2018-11-223-11/+15
|
* o Removing unused code.Trygve Laugstøl2018-11-223-12/+0
|
* o Working enabling of notifications.Trygve Laugstøl2018-11-2212-170/+432
|
* ble-read-characteristic: working READ mode, starting on NOTIFY.Trygve Laugstøl2018-11-1911-52/+69
|
* Adding missing includes.Trygve Laugstøl2018-11-192-0/+2
|
* ByteBuffer:Trygve Laugstøl2018-11-199-80/+142
| | | | | | 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.
* apps/ble-bts:Trygve Laugstøl2018-11-179-31/+228
| | | | | | | | | | o Adding start of health termometer service tool. apps/ble-read-characteristic: o Sart of new tool. apps/ble-inspect-device o Make adapter configurable. other: o UUID fixes and tests.
* o Removing debugging.Trygve Laugstøl2018-09-061-4/+0
|
* o Actually formatting UUIDs as UUIDs.Trygve Laugstøl2018-09-061-19/+8
|
* Major overhaul of BLE code:Trygve Laugstøl2018-09-0515-464/+871
| | | | | | | 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-3010-165/+325
| | | | | o boost::uuid didn't give much, use our own and add new short uuid type. o Fixing nits from clang-tidy.
* sm-db-insert: fixing headers and warnings.Trygve Laugstøl2018-08-301-6/+6
|
* sm-db-insert/select: Adding missing header.Trygve Laugstøl2018-08-232-0/+2
|
* sample-tee.cpp: tool for writing and rotating log files, similar to unix's ↵Trygve Laugstøl2017-09-013-13/+128
| | | | | | tee command. sample-add-timestamp.cpp: Actually using the resolution flag.
* o Making sure stdout is flushed properly before returning.Trygve Laugstøl2017-09-011-0/+2
|
* o Renaming SampleOutputStream to SampleConsumer.Trygve Laugstøl2017-09-0112-145/+131
| | | | o Some c++ style fixes.
* o Adding missing include.Trygve Laugstøl2017-09-012-1/+2
|
* Soil Moisture: Adding support for controlling lights.Trygve Laugstøl2016-04-1222-220/+865
| | | | | 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
|
* mqtt: Using mqtt_support utilities from the mqtt-cassandra bridge.Trygve Laugstøl2016-02-1415-170/+491
|
* o Only discovering sensors if they haven't been discovered before.Trygve Laugstøl2015-07-291-15/+17
|
* o Overhaul of the bluetooth code.Trygve Laugstøl2015-07-2612-110/+389
| | | | | | - 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 Fixing compatability with libcxx.Trygve Laugstøl2015-07-212-2/+5
|
* Fixing two bugs in mqtt-publish:Trygve Laugstøl2015-07-213-5/+19
| | | | | o The last character after EOF was parsed twice. o Create a separate counter for unacked messages instead of checking want_write.
* o Adding an application to send samples over MQTT.Trygve Laugstøl2015-07-206-31/+350
| | | | o Improved CMake build script, better detection and error messages of headers/libraries. Conditionally adding the applications that can be compiled with the given set of found libraries.
* o Sending only a single sample after all values have been read.Trygve Laugstøl2015-07-201-11/+11
|
* o Trying to clean up includes a bit.Trygve Laugstøl2015-07-1915-41/+32
|
* o Going back to a bunch of cpp files instead of launcher+bunch of header ↵Trygve Laugstøl2015-07-1918-265/+207
| | | | 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-1917-167/+187
|
* o Changing the output format to include the indexes in the values, enabling ↵Trygve Laugstøl2015-07-191-9/+12
| | | | | | | | | | | | | reading from multiple sensors in one go: This: Sample #1: device=.., sensor=1, value=123 Sample #2: device=.., sensor=2, value=321 is hanged to: Sample: device=.., sensor1=123, sensor2=321
* o Consistent ordering when storing the MAC address's bytes.Trygve Laugstøl2015-07-183-21/+21
|
* o Adding a parser::finish() method that indicates that the stream is done ↵Trygve Laugstøl2015-07-114-17/+77
| | | | and any possibly buffered data should be parsed and processed.
* o Updating to the latest version of the json library.Trygve Laugstøl2015-07-111-0/+0
|
* o Adding support for installing the code.Trygve Laugstøl2015-07-103-7/+21
|
* SoilMoisture:Trygve Laugstøl2015-06-212-3/+4
| | | | o Updating for changed get_value struct.
* ble-scan:Trygve Laugstøl2015-06-218-50/+163
| | | | | | o New tool to scan for devices. Requires root on linux :( Linux is also touchy if the program dies. BluetoothAdapter: o Adding getMac().
* ble-inspect-device:Trygve Laugstøl2015-06-211-5/+5
| | | | o Fixing broken key name.
* SoilMoisture:Trygve Laugstøl2015-06-216-42/+84
| | | | | | 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-2110-145/+157
| | | | | | | the same lifecycle as a BluetoothGatt. sm-get-value: o Better error handling.
* o Using ends_with when checking for which app to launch too.Trygve Laugstøl2015-06-219-39/+65
| | | | | sm-get-value: o Using the io code for writing samples
* o Going all header file based and single-executable to launch all apps.Trygve Laugstøl2015-06-2119-407/+488
| | | | o Ading CMake magic to generate the launcher
* o Fixing typos.Trygve Laugstøl2015-06-201-6/+5
|
* o Adding app_name to app, creating a per-app logger.Trygve Laugstøl2015-06-207-3/+40
|
* o Fixing wrong class name references in exception messages.Trygve Laugstøl2015-06-201-4/+4
|
* o Updating json library.Trygve Laugstøl2015-06-201-0/+0
|
* o Configuring better logging output.Trygve Laugstøl2015-06-201-2/+8
|
* o Adding a tool to add timestamps to each sample.Trygve Laugstøl2015-06-206-213/+136
| | | | (old wip code)