Sterling-Lwb Cloud Sensor Demo Featuring Tiwiconnect; Downloading The Sensor Demo Source Code - Laird LSR STERLING-LWB STM Quick Start Manual

Table of Contents

Advertisement

5. Sterling-LWB Cloud Sensor Demo featuring TiWiConnect

To demonstrate the use case of a cloud-connected sensor, LSR has developed a sample project that can
be used with the Sterling-LWB WICED Expansion board for reporting accelerometer, gyro and
magnetometer sensor data from an attached STM32F411 Discovery Board to a web and mobile
application.
Figure 7 TiWiConnect web application showing sensor data reported from the Sterling-LWB
IMPORTANT: This demo application is designed for use with the STM32F411 Discovery Board and may not operate as expected
with other discovery boards. The BLE and Wi-Fi capabilities may continue to operate normally but if the sensors are not found,
the code will use a pseudo-random number generator to produce sensor values.

5.1 Downloading the Sensor Demo Source Code

This sample code for use with WICED Studio can be downloaded from the Sterling-LWB "Software
Downloads" section of the LSR website. The project source code provides developers an overview of the
steps involved when developing a typical BLE+Wi-Fi enabled sensor including:
Defining and implementing custom BLE profiles for communicating with a mobile app
o Simple Sensor Profile
o Wi-Fi Configuration Profile
o LIFT Configuration Profile (for provisioning cloud API access)
Steps required to assign Wi-Fi credentials to the device over a BLE connection
Steps required to assign cloud authentication credentials to the device over a BLE connection
Basic driver for interfacing with sensors over I2C and SPI bus and LED control
Steps required to post sensor data to a cloud API via HTTP (HTTPS option included)
Steps required to receive remote cloud API commands to perform an action (e.g. toggle LEDs)
Persistent storage of credentials to Device Configuration Table (DCT) in Flash
The information in this document is subject to change without notice.
330-0234-R1.2
Copyright ©2016-2017 LSR
Sterling-LWB STM Expansion Board
USER GUIDE
Page 17 of 25

Advertisement

Table of Contents
loading

Table of Contents