summaryrefslogtreecommitdiffstats
path: root/tradeshow/iot-sensortag/bluetoothdevice.cpp
Commit message (Collapse)AuthorAgeFilesLines
* iot-sensortag: Redesign of exampleMaurice Kalinowski2017-09-271-28/+36
| | | | | | | | | | | The updated version switches the focus from having multiple sensors locally towards showing one sensor from a list. This list can display local or remote sensors and switch on runtime. Also incorporated many style fixes and cleanups. Change-Id: If7b8acbb2a784ebba95d467176e76728721c82f7 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Initialize member variablesMaurice Kalinowski2017-03-031-0/+5
| | | | | | | | Otherwise isDeviceReady() returns random results, causing the initialization of the whole connection to stop. Change-Id: I777c5eeaf342a30821f45afb076a826cda9896b9 Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* iot-sensortag: Reduce waiting time for service scanTitta Heikkala2017-03-021-5/+20
| | | | | | | | | | Unnecessary 1s delay to start service scan removed. If all service details have been discovered there's no need to start the 5s service details timer. Change-Id: I6c8c89455fb3cfdbc1a28198234e95a4ed0b7e8b Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* iot-sensortag: Allow reconnect after a failed connection attemptKari Hautamäki2017-02-281-18/+41
| | | | | | | | | | | | | | | | | | A disconnected sensor tag can be tried to be reconnected by clicking on the chart area or starting rescan from the Sensor settings menu. During a (re)connection process a progress indicator is shown to the user. The user has a possibility to disconnect (and reconnect) a currently connect SensorDataProvider A new state, 'NotFound' is added in SensorTagDataProvider to distinguish between states when a Sensor Tag has not been discovered at all, and when it has already been discovered but is has been disconnected. Change-Id: I54eea72d8c92a67a5ccbb3bc192ac8f33ada1c39 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* iot-sensortag: BluetoothDevice: Use m_ notation for membersOliver Wolff2017-02-161-95/+95
| | | | | | Change-Id: I63252362c7e9a5026b5c59802919ea840cb5356c Reviewed-by: Titta Heikkala <titta.heikkala@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* iot-sensortag: BluetoothDevice: Remove unused membersOliver Wolff2017-02-161-19/+4
| | | | | | Change-Id: I6b3467541950df284f37d3b823c9fdfb535593ce Reviewed-by: Titta Heikkala <titta.heikkala@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* iot-sensortag: Remove unused CharacteristicInfoOliver Wolff2017-02-161-1/+0
| | | | | | Change-Id: I473c28d7c6d19e633623a30d6ca8d4edd07423b2 Reviewed-by: Titta Heikkala <titta.heikkala@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* iot-sensortag: "Fix" isDeviceReadyOliver Wolff2017-02-151-11/+15
| | | | | | | | | The name suggests a const function so we either have to come up with a new name that describes the current functionality or move the state change out of the function. Decided for the latter. Change-Id: Ifab2689b8a3ec054222f40708e1eb2d1576a6a08 Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* iot-sensortag: Fix compile errorTitta Heikkala2017-02-151-1/+1
| | | | | | | isDeviceReady() function can't be const because it changes the state. Change-Id: I05fe26aad80b7aaede42bf26c7aba6b9c9c299f3 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* iot-sensortag: Add sensor tag setup for Embedded WorldKari Hautamäki2017-02-151-2/+15
| | | | | | | | - Added two sensor tags with unique capabilities by faking that each provide only a subset of available sensor data Change-Id: I9b7ad9f7b41ea7c5abaad0bc3fbe063219b19a9e Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* iot-sensortag: Use dedicated slots for characteristic changesOliver Wolff2017-02-141-24/+27
| | | | | | | | By using a dedicated slot for each kind of sensor we can avoid one indirection and get rid of the characteristic handle members. Change-Id: I5da16fd4fab55c4085aa1ed141b69a3c442b8fb3 Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* iot-sensortag: Remove m_characteristicsOliver Wolff2017-02-141-39/+0
| | | | | | | | m_characteristics and related functions and signals are not used anywhere so they can be removed. Change-Id: I0e5e0808be4b308687a806ea43492c251d9122f8 Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* iot-sensortag: Rework service discoveryOliver Wolff2017-02-141-66/+53
| | | | | | | | | Instead of iterating over the list of the controller's services after discovery is finished, handle the found services one by one when the according serviceDiscovered signal is emitted. Change-Id: I84d879059222189fb106e085bd9f2e4d3cb44bb5 Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* iot-sensortag: Remove unused m_servicesOliver Wolff2017-02-141-129/+68
| | | | | | | | Neither m_services nor signals functions that use this member are used anywhere in the code so they can safely be removed. Change-Id: I3c5ff95499e5012b9c6e7d608a6feceb9d45fe7c Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* iot-sensortag: Avoid loops during sensor initializationOliver Wolff2017-02-141-77/+114
| | | | | | | | | Instead of iterating over service characteristics and their descriptors we should access the needed characteristics and descriptors directly. Change-Id: I5e14c5d24175ed73ed9396379a6f97360189cc8a Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* iot-sensortag: Do not hardcode characteristic handlesOliver Wolff2017-02-141-15/+12
| | | | | | | | | | Depending on the tag's firmware version the characteristics' handle values might be different. Following TI's advice we should do a proper lookup instead of hardcoding them. Change-Id: I95934e554563e99118fc8ffe87de44e87d409ecf Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io> Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* RotationPage addedOtto Ryynänen2017-02-031-31/+6
| | | | | | | | | Added a page that has three rotating disks. Current pictures are placeholders for final graphics. SensorTag can be recalibrated. Change-Id: I0666ab06e665d8c40861e170f36b09013b722973 Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* Fixed bug in Accelometer data (was multiplied by 1000)Otto Ryynänen2017-02-021-1/+1
| | | | | Change-Id: I4ffd59c33ec35f2d65bc59822f4080887633fa43 Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* SensorTag changed to broadcasting mode form read-resp modeOtto Ryynänen2017-01-311-159/+53
| | | | | | | | | | | | | Sensortag now sends data according to set intervals and app only listens to signals. Timers removed as they are no longer needed. Both ambient and object temperature read and converted properly. Cloud data updated with dedicated abient and object temperatures. Version is now 1.1 (backwards compatible). Mock data reflects to reality better. Change-Id: I6a0325a513c1a054322f18e68d2b15c474db3ee5 Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* Display rotation values in GyroChartKari Hautamäki2017-01-301-0/+1
| | | | | | | Displays rotation values in GyroChart instead of *_degPerSec values. Also, elapsed time between measurements given a meaningful initial value in BluetoothDataProvider. Change-Id: Id4aa8820d8e45ac72d85cc963e993941ccacd599 Reviewed-by: Otto Ryynänen <otto.ryynanen@qt.io>
* Added IoT SensorTag demo to tradeshowOtto Ryynänen2017-01-301-0/+793
iot-sensortag folder added. This is project originally from consultacy repo, moved to here. It's a cross-platform app that shown multiple data values from TI CC2650 SensorTag. Change-Id: I648464ed9a8253e5069bc6fd59e8b92128b60adc Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>