summaryrefslogtreecommitdiffstats
path: root/tradeshow/iot-sensortag
Commit message (Collapse)AuthorAgeFilesLines
* iot-sensortag: Align font sizesMaurice Kalinowski2017-09-277-0/+13
| | | | | | | | | 26 is used on some, but not all locations. That had the side effect, that text had different sizes on different platforms causing layouting issues. Change-Id: I057010fdf2aa562c188bd2376829d065a5eeff93 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* iot-sensortag: Add support for MQTTMaurice Kalinowski2017-09-277-49/+891
| | | | | | | | Using MQTT a sensor can send its data to a broker as well as display data from a remote MQTT broker. Change-Id: I01f961e89b2c6d028498ce61e4087a47742b8b82 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* iot-sensortag: Redesign of exampleMaurice Kalinowski2017-09-2761-1055/+569
| | | | | | | | | | | 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>
* iot-sensortag: Add IP displayMaurice Kalinowski2017-03-083-1/+16
| | | | | | | | | | | When the app automatically runs on startup, we need to have a way to identify the device's IP address to deploy updates, for instance new MAC filter addresses. When clicking on the date string, it switches to show the IP addresses available. Change-Id: Ie3b10f2b701674ee07f1a8c7a3b064e67d8f6373 Reviewed-by: Risto Avila <risto.avila@qt.io>
* Remove superfluous functionMaurice Kalinowski2017-03-032-7/+0
| | | | | | | | Uses base class variable in any case. In addition setTageType is not virtual. Change-Id: Iaa7b5bb65f07966b193f7ce2c142284325cd9bb9 Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* iot-sensortag: Fix Sensor Settings font sizeTitta Heikkala2017-03-031-0/+2
| | | | | | | | The size of the font for provided data in Sensor Settings fixed so that it's readable also with Nexus 7. Change-Id: I0dd0935be36442e39c83c83c8879ba932aa6a1cb Reviewed-by: Maurice Kalinowski <maurice.kalinowski@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-024-10/+22
| | | | | | | | | | 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: Assign sensor types arbitrarily to available sensor tagsKari Hautamäki2017-02-282-32/+29
| | | | | | | | In the demo setup, assign all sensor types to the set of available sensor types. Change-Id: If07674ccc40f7668e96e41df62d3b2745e6c9cb4 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* iot-sensortag: Allow reconnect after a failed connection attemptKari Hautamäki2017-02-2822-178/+561
| | | | | | | | | | | | | | | | | | 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: NumberAnimation in LightChartKari Hautamäki2017-02-281-7/+1
| | | | | | | In LightChart, replace NumberAnimation with OpacityAnimator Change-Id: I52c15a5fee3cc7d4fedde51b7011ba7c3a269a32 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* iot-sensortag: Update Gyro imagesTitta Heikkala2017-02-285-0/+0
| | | | | | | Images for RotationPage gyro updated. Change-Id: I4678bd51d0334e4d57980309fe0d9e3e67e718ad Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* iot-sensortag: RotationAnimator in RotationPageKari Hautamäki2017-02-271-7/+7
| | | | | | | In RotationPage, replace RotationAnimation with RotationAnimator Change-Id: I7344a836319213a3a62f766ec4731af3c800fb5b Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* iot-sensortag: Remove transparent image from object temperatureTitta Heikkala2017-02-241-36/+5
| | | | | | | The transparent image is not needed for object temperature cauge. Change-Id: I8880f0ef3c84a382a7bfc9cdaf867e901fbf6219 Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* iot-sensortag: Remove Glow effectTitta Heikkala2017-02-243-25/+7
| | | | | | | Glow effect removed from ChartView elements. Change-Id: I4a020c783c715c45c8d10663c8f2828d7f10bdd5 Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* iot-sensortag: Remove unused SensorTag.qmlKari Hautamäki2017-02-242-253/+0
| | | | | | | Remove the unused file Change-Id: I1822fb06885cbe26a2506860ad27dbfffb18c3b7 Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* iot-sensortag: Update Humidity imageTitta Heikkala2017-02-231-0/+0
| | | | | | | Image for Humidity Chart updated. Change-Id: I3343354bdc7c5f5d76e6869b874dd33f58846c54 Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* iot-sensortag: Clean up onSensorChanged signal handlersTitta Heikkala2017-02-226-77/+34
| | | | | | | | Removed onSensorChanged signal handlers from charts as they are not needed. Instead, react to changes of sensor properties. Change-Id: Ib848d3ddfeed550538d35793b24eeb137a57a171 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* iot-sensortag: Upate GyroChart graph when reading from the Azure cloudKari Hautamäki2017-02-211-0/+6
| | | | | | | | | Send the aggregate signal rotationValuesChanged when a changed rotation value is read from the Azure cloud. SeriesStorage uses this signal to update the series data. Change-Id: I879f1e7c3b625541156fe909473397d7d40148bf Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* iot-sensortag: Add missing files for MockDataProviderPoolKari Hautamäki2017-02-212-0/+169
| | | | | | | | The commit 22ca8687ef2c4ebbbc8d40fd41b45335b0058418 had missing files for MockDataProviderPool. Add the missing files here Change-Id: Ib49d120d107428079686e474fd9f06bdddbdcf8f Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* iot-sensortag: Fix build for AndroidKari Hautamäki2017-02-211-0/+2
| | | | | | | | Add namespace directive QT_CHARTS_USE_NAMESPACE to seriesstorage.h Change-Id: I4b96cfced5aa70700d97af97ff1a739415102f18 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io> Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* iot-sensortag: Add MockDataProviderPoolKari Hautamäki2017-02-212-9/+9
| | | | | | | | | | | Add MockDataProviderPool that derives directly from SensorTagDataProviderPool. This allows building for Android without a dependency to SensorTagDataProviderPool that can be used only when a device runs in host mode Change-Id: I3ff6fe36b80a4ee5dfe9815c811cc6bf016e3e6d Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io> Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* Fix warningMaurice Kalinowski2017-02-201-2/+3
| | | | | | | Also add initializer for yAxisG. Change-Id: If2518de5463ab509b8d58b20ead288374558cd5e Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Remove platform name from variableMaurice Kalinowski2017-02-201-2/+2
| | | | | | | | The demo can also run on other platforms than linux. Hence the old name is misleading. Change-Id: I8345c93be552c6e8fc614a517528a8e45b5d1381 Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* Remove hardcoded pathsMaurice Kalinowski2017-02-201-10/+15
| | | | | | | | User has to specify location for cpprest and wastorage when invoking qmake Change-Id: Ib0b3b7b0e648022c73ca1f942ebbc423b6f3caf6 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Change to more details cloud namingMaurice Kalinowski2017-02-202-5/+5
| | | | | | | | | In case additional protocols get added, cloud can be a confusing and to generic name. Change-Id: I3ff4ac0178e017c42684514a1923e718bb1fe5b7 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* iot-sensortag: Remove unnecessary importTitta Heikkala2017-02-171-1/+0
| | | | | | | Remove Particles import as it's no longer needed. Change-Id: If55f643b31f43db6df9be166d24bad72a4304c2b Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* iot-sensortag: Change Magnetometer chart typeTitta Heikkala2017-02-176-58/+37
| | | | | | | | Magnetometer chart changed from polar chart view to chart view. Also changed the series to LineSeries. Change-Id: Ibdf2dc1c86e63fd20caa8d3c1a09377ea6de8f4b Reviewed-by: Otto Ryynänen <otto.ryynanen@qt.io>
* iot-sensortag: BluetoothDevice: Use m_ notation for membersOliver Wolff2017-02-162-102/+102
| | | | | | 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-162-26/+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-164-242/+2
| | | | | | Change-Id: I473c28d7c6d19e633623a30d6ca8d4edd07423b2 Reviewed-by: Titta Heikkala <titta.heikkala@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* Move series updates to C++Maurice Kalinowski2017-02-168-58/+321
| | | | | | | | | | | Instead of jumping to and from the QML engine for each sensor update, rather stay inside C++ and let QML only do the visual updates. This only updates the items which use Charts, as updates to a series is expensive. Change-Id: Idc7a98d2865e7095264f226c0ac5bbb5a977d18a Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* iot-sensortag: Update the timeTitta Heikkala2017-02-161-0/+7
| | | | | | | Add a timer to update the time. Change-Id: I1ec817c15f4609c6c362481d2c5276b2dc167cca Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* iot-sensortag: Fix UI based on findings on Android deviceTitta Heikkala2017-02-164-19/+15
| | | | | | | | Minor changes done to UI based on findings on Nexus 7. Change-Id: I3e7496578a03ab059e0ba0b99f7f97ac2c91a8e5 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* Mark accessors as constMaurice Kalinowski2017-02-154-90/+91
| | | | | | Change-Id: I32afa9f74e428ee7c19369aad173c72f193f526f Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* Remove dead codeMaurice Kalinowski2017-02-151-1/+0
| | | | | | Change-Id: If1af7fd6b88bccaccfe0a990e46e5ada96574736 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* cleanup enabling range-forMaurice Kalinowski2017-02-154-23/+24
| | | | | | | | | foreach is considered harmful since 5.7 and will be deprecated with 5.9. Add QT_NO_FOREACH to forbid accidental addition later on. Change-Id: I652975c3454fdb7987cf8ea609d490476e9e7624 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* Fix mock backendMaurice Kalinowski2017-02-152-1/+4
| | | | | | | | | Signals were not emitted and wrong function call to mimick end of scanning. Change-Id: Ic418b3d636615e464b8e406f0e31f37a70354870 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* iot-sensortag: "Fix" isDeviceReadyOliver Wolff2017-02-152-12/+16
| | | | | | | | | 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 infrared temperature service uuidOliver Wolff2017-02-151-1/+1
| | | | | Change-Id: I9f5842272311e77dea066a6f73d09366c8ab529b Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
* iot-sensortag: Fix compile errorTitta Heikkala2017-02-152-2/+2
| | | | | | | 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-1510-49/+344
| | | | | | | | - 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-142-31/+37
| | | | | | | | 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-142-45/+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-142-66/+60
| | | | | | | | | 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-142-134/+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-142-15/+17
| | | | | | | | | | 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>
* iot-sensortag: Add possibility to scan sensorsTitta Heikkala2017-02-143-0/+11
| | | | | | | Added possibility to start scanning of sensors to SensorSettings. Change-Id: I1ebb5da22a4e98d6c2220bb6d51f17641c7821ec Reviewed-by: Otto Ryynänen <otto.ryynanen@qt.io>
* iot-sensortag: Use OpenGL with all chartsTitta Heikkala2017-02-142-0/+6
| | | | | | | Gyro and MAgnetometer charts are updated to use OpenGL for series. Change-Id: Ib4f7e3c7e4bdf5015484f3849cc99ad9c1490f5f Reviewed-by: Otto Ryynänen <otto.ryynanen@qt.io>