This document provides instructions for creating a watch app that displays temperature sensor values from a Garmin tempe temperature sensor using ANT+ technology, but does not record the values. It instructs the user to create a new Connect IQ project called TempeApp targeted at a square watch, delete unnecessary files, and modify the app delegate file to remove an unnecessary function so that the app simply displays temperature values without recording them or including menus.
This document provides instructions for creating a watch app that displays temperature sensor values from a Garmin tempe temperature sensor using ANT+ technology, but does not record the values. It instructs the user to create a new Connect IQ project called TempeApp targeted at a square watch, delete unnecessary files, and modify the app delegate file to remove an unnecessary function so that the app simply displays temperature values without recording them or including menus.
This document provides instructions for creating a watch app that displays temperature sensor values from a Garmin tempe temperature sensor using ANT+ technology, but does not record the values. It instructs the user to create a new Connect IQ project called TempeApp targeted at a square watch, delete unnecessary files, and modify the app delegate file to remove an unnecessary function so that the app simply displays temperature values without recording them or including menus.
Now let’s experiment with talking to a sensor using ANT+ technol‐ ogy, the Garmin tempe temperature sensor. This project won’t be an activity recorder; it will display the values, but won’t record them.
1. Choose File→New→Connect IQ Project. Name it TempeApp,
make it a Watch App, and choose Square Watch as the target platform (along with any other platforms you want to use). 2. Delete the following files or directories from the project (right- click, then choose Delete): resources/menus, resources/layouts, and source/TempeAppMenuDelegate.mc. These files relate to portions of the sample app (specifically, the part that displays the sample menus) that you won’t need for this project. 3. Open source/TempeAppDelegate.mc in the editor, and remove the entire onMenu() function. The file should look like this when you’re done: using Toybox.WatchUi as Ui;
class TempeAppDelegate extends Ui.BehaviorDelegate {