Building Arduino Projects for the Internet of Things

(Steven Felgate) #1

CHAPTER 9 ■ IOT PATTERNS: LOCATION AWARE


void loop()
{
// Get GPS Coordinates
getGPSCoordinates();
}


Your Arduino code is now complete.

The Final Product


To test the application, make sure your MySQL and PHP servers are up and running with
the code deployed.
Also verify and upload the Arduino code as discussed in Chapter 1. Once the code
has been uploaded, open the Serial Monitor window. You will start seeing log messages
similar to ones shown in Figure  9-9.


Figure 9-9. Log messages from the livestock tracking system

Free download pdf