Interacting With Your Sterling-Lwb Over Ble; Interacting With Your Sterling-Lwb Via The Cloud; Tiwiconnect Web Application; Accessing Tiwiconnect Web Application - Laird LSR STERLING-LWB STM Quick Start Manual

Table of Contents

Advertisement

then register the device with the TiWiConnect cloud service and the Sterling-LWB will attempt to
connect and begin reporting sensor data on a periodic basis.

5.4.4 Interacting with your Sterling-LWB over BLE

In the device list, if your Sterling-LWB is within range for a BLE connection and you select it from the list,
the app will attempt to communicate directly over BLE to report sensor data and provide control over
the LEDs on the discovery board. When you select the device (touch the list item but not on the plus '+'),
the app will display a list view showing sensor values updating periodically as they are reported by the
discovery board. You can control the LEDs by touching the switches on the right hand side of the view to
toggle them on/off. Note at the bottom of the screen, the app will indicate "Connected via BLE".

5.4.5 Interacting with your Sterling-LWB via the Cloud

If your Sterling-LWB is not within range to make a BLE connection and you have gone through the Wi-Fi
configuration process in 5.4.3, you can still monitor and control the discovery board if it is online by
communicating via the TiWiConnect cloud. To monitor/control via the cloud, use the same process as
you would for BLE by selecting the device from the list (touch the list item but not on the plus '+' if it is
visible). The app will make a connection to the TiWiConnect service and begin receiving updates from
your kit over the internet just like it would via BLE. You also still have control over the LEDs in this mode,
however the commands are being tunneled through the internet connection so there may be a slight
delay. Note at the bottom of the screen, the app will indicate "Connected via Websockets". If for testing
purposes you would like to force connection over Websockets rather than over BLE, check the box
labeled "Disable BLE Connections" in the "Settings" menu and re-connect to the device from the device
list view.

5.5 TiWiConnect Web Application

Once your Sterling-LWB is connected to the Wi-Fi network and reporting its data to the cloud, you can
also interact with it from a web browser. As part of this demonstration, LSR has developed a simple web
application providing a visual interface to viewing sensor data, monitoring button states and sending
remote commands to turn the discovery board LEDs on/off. NOTE: When changing LEDs on/off from the
web application the state of the on/off switches in the mobile app will not update over BLE (this is a
limitation of the LED Status BLE profile used for this demo).

5.5.1 Accessing TiWiConnect Web Application

We recommend using the Google Chrome browser to ensure the best experience. To bring up the
TiWiConnect Web Application, visit the following URL:
https://sterling.tiwiconnect.com/demo/#/en/sterling
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 20 of 25

Advertisement

Table of Contents
loading

Table of Contents