[**FTMS TypeScript API**](https://deancochran.github.io/ftms/api/typescript/index.md)

***

[FTMS TypeScript API](https://deancochran.github.io/ftms/api/typescript/index.md) / decodeIndoorBikeData

# Function: decodeIndoorBikeData()

> **decodeIndoorBikeData**(`data`, `options?`): [`DecodedIndoorBikeData`](https://deancochran.github.io/ftms/api/typescript/interfaces/DecodedIndoorBikeData.md)

Defined in: [packages/typescript/src/indoor-bike.ts:75](https://github.com/deancochran/ftms/blob/2586e33ac88d5d945d9658e063bb909cd58462bd/packages/typescript/src/indoor-bike.ts#L75)

Decode one Indoor Bike Data value (0x2AD2), not a connection or assembled
record. Uses the existing raw codec; performs no device/layout inference.

Truncated packets return complete earlier fields plus diagnostics, including
packets with incomplete flags. Invalid input types/options throw RawCodecError.
Both speed units derive directly from the wire integer (no round trip).

## Parameters

### data

`ArrayBuffer` \| `Uint8Array`\<`ArrayBufferLike`\>

### options?

[`FtmsMeasurementFormatOptions`](https://deancochran.github.io/ftms/api/typescript/interfaces/FtmsMeasurementFormatOptions.md)

## Returns

[`DecodedIndoorBikeData`](https://deancochran.github.io/ftms/api/typescript/interfaces/DecodedIndoorBikeData.md)
