Skip to content

garmin/fit-cpp-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Garmin FIT C++ SDK

FIT SDK Documentation

The FIT SDK documentation is available at https://developer.garmin.com/fit

FIT SDK Developer Forum

Share your knowledge, ask questions, and get the latest FIT SDK news in the FIT SDK Developer Forum.

Requirements

A C++ compiler is required to compile the FIT C++ SDK, such as the GNU g++/gcc, MSVC, or Apple Clang compilers.

Install

The FIT C++ SDK can be cloned from the FIT C++ SDK repository on GitHub.

Examples

Example implementations of the FIT SDK are provided and can be found in the examples/ folder.

  • Decode: Demonstrates decoding a FIT file; and use of the Decode and Message Broadcaster classes and Message Listener event interfaces.

  • Encode: Demonstrates encoding an activity FIT file and programmatic generation of messages.

To compile the examples, leverage the makefiles. Note that the makefiles use the GNU g++ compiler.

# Navigate to the example
cd /path/to/fit/sdk/cpp/examples/decode

# Build the example project
make clean
make

# Run the compiled example
./decode someFitFile.fit
# Navigate to the example
cd /path/to/fit/sdk/cpp/examples/encode

# Build the example project
make clean
make

# Run the compiled example
./encode

About

Official Garmin FIT C++ SDK

Topics

Resources

License

Stars

Watchers

Forks

Languages