Developing the Target and CGI Integration Scripts
With the Project Trailblazer database created, populated with test data, and queried, you are ready to move on to developing the Project Trailblazer target and CGI integration scripts.
Collecting and Distributing Temperature Data
The collection and storage of temperature data requires two bash scripts:
temperatureReport— The collection script temperatureReport, shown in Listing 12.2, executes continuously on a target board, periodically communicates with an external temperature sensor, and then reports the temperature value via an HTTP connection. The target board's init program or a startup script starts the temperatureReport script.
temperatureRecord— The database storage script temperatureRecord ...
Get Embedded Linux®: Hardware, Software, and Interfacing now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.