Skip to content

Commit

Permalink
Garmin FIT SDK 21.100.00
Browse files Browse the repository at this point in the history
  • Loading branch information
pryhoda authored Dec 22, 2022
1 parent ef5cad6 commit c765384
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 27 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The Read method accepts an optional options object that can be used to customize

````js
const { messages, errors } = decoder.read({
mesgListener = (messageNumber, message) => {},
mesgListener: (messageNumber, message) => {},
applyScaleAndOffset: true,
expandSubFields: true,
expandComponents: true,
Expand Down Expand Up @@ -208,10 +208,10 @@ const FIT_EPOCH_MS = 631065600000;
````
The FIT_EPOCH_MS value can be used to convert FIT Epoch values to JavaScript Date objects.
````js
const jsDate = new Date(fitDateTime * 1000 + FIT_EPOCH_MS);
const jsDate = new Date(fitDateTime * 1000 + Utils.FIT_EPOCH_MS);
````
### convertDateTimeToDate Method
A convince method for converting FIT Epoch values to JavaScript Date objects.
````js
const jsDate = convertDateTimeToDate(fitDateTime);
const jsDate = Utils.convertDateTimeToDate(fitDateTime);
````
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@garmin-fit/sdk",
"version": "0.99.0",
"version": "0.100.0",
"description": "FIT JavaScript SDK",
"main": "src/index.js",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions src/accumulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.99Release
// Tag = production/release/21.99.00-0-gb5b0e7a
// Profile Version = 21.100Release
// Tag = production/release/21.100.00-0-ga3950f6
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/bit-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.99Release
// Tag = production/release/21.99.00-0-gb5b0e7a
// Profile Version = 21.100Release
// Tag = production/release/21.100.00-0-ga3950f6
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/crc-calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.99Release
// Tag = production/release/21.99.00-0-gb5b0e7a
// Profile Version = 21.100Release
// Tag = production/release/21.100.00-0-ga3950f6
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.99Release
// Tag = production/release/21.99.00-0-gb5b0e7a
// Profile Version = 21.100Release
// Tag = production/release/21.100.00-0-ga3950f6
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/fit.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.99Release
// Tag = production/release/21.99.00-0-gb5b0e7a
// Profile Version = 21.100Release
// Tag = production/release/21.100.00-0-ga3950f6
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.99Release
// Tag = production/release/21.99.00-0-gb5b0e7a
// Profile Version = 21.100Release
// Tag = production/release/21.100.00-0-ga3950f6
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
6 changes: 3 additions & 3 deletions src/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.99Release
// Tag = production/release/21.99.00-0-gb5b0e7a
// Profile Version = 21.100Release
// Tag = production/release/21.100.00-0-ga3950f6
/////////////////////////////////////////////////////////////////////////////////////////////


const Profile = {
version: {
major: 21,
minor: 99,
minor: 100,
patch: 0,
type: "Release"
},
Expand Down
4 changes: 2 additions & 2 deletions src/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.99Release
// Tag = production/release/21.99.00-0-gb5b0e7a
// Profile Version = 21.100Release
// Tag = production/release/21.100.00-0-ga3950f6
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/utils-hr-mesg.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.99Release
// Tag = production/release/21.99.00-0-gb5b0e7a
// Profile Version = 21.100Release
// Tag = production/release/21.100.00-0-ga3950f6
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/utils-internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.99Release
// Tag = production/release/21.99.00-0-gb5b0e7a
// Profile Version = 21.100Release
// Tag = production/release/21.100.00-0-ga3950f6
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.99Release
// Tag = production/release/21.99.00-0-gb5b0e7a
// Profile Version = 21.100Release
// Tag = production/release/21.100.00-0-ga3950f6
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down

0 comments on commit c765384

Please sign in to comment.