our swiss φθηνα ρολογια are all in now.
The three TelemetrySensor Arduino apps that mimic the desktop/phone Universal app UI functions are created by copying and appropriately editing the ToDoItem Arduino apps.
Code now on Codeplex: https://Ardjson.codeplex.com as 1.3b JsonTelemetrySensorArduinoApps.zip
There is a set of sensors, temperature, humidity and (air) pressure. Each has a current value. A value is submitted along with its sensor name. A previously submitted sensor value can be updated. The GET function returns all records. Note that the Mobile Service table automatically stores a record creation date-time. Note that in this version all values are created in software. A later version will read actually sensors.
To copy an Arduino sketch:
Open it in the IDE
Choose a folder at the same level as the original app
Give the app the new name and save
Editing the copied sketch:
To simplify things each of the original ToDoItem sketches are compared to the new Telemetry Sensor sketches. The new sketches can then be edited by making those changes:In the table below, only changes only, in red. The first block in each comparison is for first named sketch, the second is for named sketch. The corresponding line numbers in each sketch's source code are in the columns on the left. The link to each comparison is listed below:
Comparison: JsonTodoGetIncomplete v JsonGetTelemetrySensorValues
Comparison: JsonPostNewToDoItem v JsonPostNewTelemetrySensor
Comparison: JsonCompletATodoItem v JsonUpdateSensorValue