Chapter 4. Projects
There’s no better way to learn something new than by example. I’ve put together some simple projects that you can follow along with to learn some skills for Connect IQ. First, you’ll learn how to run the example programs that come with the Connect IQ SDK, and also how to modify one of those examples. Next, you’ll step out of the physical confines of the simulator and use ANT+ technology to talk to an external sensor, the Garmin tempe temperature sensor. Finally, you’ll learn how to communicate with an authenticated web service.
Note
You can download these projects and other sample code from Garmin’s connectiq-apps GitHub repo.
Personal Data Tracking
The Project Explorer in the Connect IQ perspective shows all the Connect IQ projects in your workspace. Unless you’ve been exploring on your own, you should only see one project, MyFirstApp. Keeping track of which project an open file corresponds to can be tricky, so I suggest you right-click on MyFirstApp and choose Close Project. That will collapse its folders and also will close any of its files you may have open. Do the same with any other projects you’re working on.
-
Now you’re ready to import one of the Connect IQ sample projects. Choose File→Import, and the Import dialog will appear. Make sure General→Existing Projects into Workspace is selected as shown in Figure 4-1. Click Next.
Figure 4-1. Importing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access