Simple Stream With Wi-Fi¶
In order to stream data over Wi-Fi, we currently offer two bridge applications.
The other is implemented as a Flask Application to run on a computer or Raspberry Pi.
Simple Stream Wi-Fi Endpoints¶
There are four endpoints create by either application:
/stream endpoint will stream the data to applications such as the as the Data Capture Lab. It will automatically send data in the same order received upon getting an open HTTP/stream GET request.
Disconnect Endpoint (optional)¶
/disconnect endpoint will be called to end the streaming of sensor data.
ESP32 Feather Application¶
Compiling this application with your Wi-Fi SSID and password, as well as the UART configuration of your Feather/Wing, will allow the data streaming from your Simple Streaming device (such as the Arduino Nano 33 or QuickLogic QuickFeather) to be relayed to the http endpoints.
Data Collection Vs. Recognition¶
The ESP32 application will currently only work with data collection OR recognition. Because parsing JSON is costly in an embedded system, it will assume recognition mode if results are received from the device first. It will assume data collection mode if the device configuration JSON is received from the device first.
SensiML Simple Streaming Gateway¶
In some cases, you may want to use a gateway device to retrieve sensor data from your device as an intermediary between the Data Capture Lab. We have created the SensiML Streaming Gateway that communicates with the Data Capture Lab over Wi-Fi and can read sensor data from BLE and Serial Connections. It is open-sourced and easily extensible to other data sources.
This application is intended to run as a simple application on a remote computer (Raspberry Pi or other single-board computers that can run Python included).
Instructions for running and configuring the application can be found in the README file.