Garmin.DeviceControl.js Module

Provides callback functionality that takes care of polling the plugin for read, write and download operations. It also provides helper functionality that will remove the dependency of manipulating the xml returned.

API

The Garmin.DeviceControl provides:

  • Methods for starting read, write, and download processes
  • Polling of the device to determine process completion and progress
  • Helper objects for easy access to plug-in and device data (progress data, device data)
  • Track data can be retrieved in a number of formats:
    • XML String
    • XML DOM Object
    • Track Object (Garmin.DeviceDataStructures.js)

API Demo

The API demo allows live interactive experimentation with the JavaScript code.

Run API demo