Skip to Content
Wearable Programming for the Active Lifestyle
book

Wearable Programming for the Active Lifestyle

by Brian Jepson
January 2017
Intermediate to advanced
69 pages
1h 21m
English
O'Reilly Media, Inc.
Content preview from Wearable Programming for the Active Lifestyle

Chapter 3. Getting Started with Connect IQ

It’s time to learn how to build an app. The Connect IQ SDK lets you write code for Garmin wearables with a minimum of fuss and few lines of code. With starting templates for four kinds of apps, plenty of sample code, and a programming language (Monkey C) that is similar to Java, JavaScript, PHP, Ruby, and Python, you’ll be up and running quickly. You’ll need to configure some software first, and (optionally) get your hands on some hardware. You can download the free SDK from the Garmin website.

What You’ll Need

Garmin wearable

This is optional. The Connect IQ SDK includes a simulator that can run any code you develop. However, there’s no substitute for testing on a real device. You can find a list of compatible devices at the Garmin Developer site.

ANT+ connectivity

In Chapter 4, you’ll learn how to go beyond this chapter’s simple example. One of the projects shows how a Garmin wearable can connect to an external sensor using the ANT+ wireless protocol.

If you don’t have a compatible device with Connect IQ that supports the Temperature profile, you’ll need to run the app in the simulator with a Garmin ANT+ USB adapter (Garmin part number 010-01058-00, available from a variety of resellers including Garmin, Walmart, and Amazon).

The temperature sensor you’ll use is the Garmin tempe sensor (part number 010-11092-30).

Computer

The Connect IQ SDK will run on a Windows or Mac computer.

You’ll need one USB 2.0 or 3.0 port. If you are ...

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

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Wearable Computing

Wearable Computing

Giancarlo Fortino, Raffaele Gravina, Stefano Galzarano
Wearable Sensors

Wearable Sensors

Edward Sazonov

Publisher Resources

ISBN: 9781492048800