Just published on Codeplex and GitHub. More details later:Win10 IoT Core Universal Windows App runs on a Raspberry PI 2 (& desktop) that reads some sensors (on an Arduino board) saves to and from Azure Mobile Service
https://iotazuresensors.codeplex.com/
You plug the Arduino device's Micro USB in to a RPI2 USB Host port.
So using an Arduino Uno
- Freetronics DHT Humidity Sensor
- Freetronics Baro (Pressure) Sensor
The Main Page: Buttons are all generated from menu.json
The Serial Terminal Page: Adapted from the IoT Serial Example
Listing Page – 1: The latest values for each sensor (Values as stored on Azure Mobile Service)
Listing Page – 2: The History of the Humidity Sensor (Values as stored on Azure Mobile Service)
gg
{ "ElementConfig": }, { "MainMenu": [ "_", "Setup Serial", "Show sensor list", "Back to sensor list","=Sensor"], , , , , , , , }, { "SecondMenu": [ "a" ], [ "b" ], [ "c" ] }, { "ThirdMenu": [ "a" ], [ "b" ], [ "c" ] }
The Json text is an array of an named arrays (ElementConfig, MainMenu,SecondMenu and ThirdMenu)
MainMenu: This is an array of an array of strings. It is 2D array of the UI Command Buttons. (Those with _ prefix are TextBlocks and those with = are TextBoxes)The first column (TextBlocks) states the commandThe third row (TextBoxes) is where the individual sensor values are written.
The buttons are the sensors to action the command with.
These entities are read into lists which are then used by the program.