Sensor Tutorials Overview¶
This set of sensor tutorials allows you to explore the Mynewt Sensor Framework features and learn how to develop sensor-enabled Mynewt applications.
The Mynewt Sensor framework supports:
Onboard and off-board sensors.
Retrieving sensor data and controlling sensor devices via the Mynewt OS Shell.
Retrieving sensor data over the OIC protocol and BLE transport.
The tutorials are:
Enabling an Off-Board Sensor in an Existing Application - This is an introductory tutorial that shows you to how to quickly bring up a sensor enabled application that retrieves data from a sensor device. We recommend that you work through this tutorial before trying one of the other tutorials.
Changing the Default Configuration for a Sensor - This tutorial shows you how to change the default configuration values for a sensor.
Developing an Application for an Onboard Sensor - This tutorial shows you how to develop a simple application for a device with an onboard sensor.
Enabling OIC Sensor Data Monitoring - This tutorial shows you how to enable support for sensor data monitoring via OIC in an existing application.
We use the
Mynewt Sensor Monitor App on iOS or Android to retrieve
and display sensor data from the Mynewt OS OIC sensor applications
described in the OIC Sensor Data Monitoring tutorials. You can download
the app from either the Apple Store or Google Play Store.
Note: At the time of writing this tutorial, the iOS app was still in the queue waiting to be placed in the App Store. You can build the iOS app from source as indicated below.
Ensure that you meet the following prerequisites before continuing with one of the tutorials.
Have Internet connectivity to fetch remote Mynewt components.
Have a computer to build a Mynewt application and connect to the board over USB.
Have a Micro-USB cable to connect the board and the computer.
Install the newt tool and toolchains ( See Basic Setup ).
Read the Mynewt OS Concepts section.
Create a project space (directory structure) and populate it with the core code repository (apache-mynewt-core) explained in Creating Your First Project
Work through one of the Blinky Tutorials