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

***

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

# Function: decodeFtmsMeasurement()

> **decodeFtmsMeasurement**(`characteristicUuid`, `data`, `options?`): [`FtmsMeasurementDecodeResult`](https://deancochran.github.io/ftms/api/typescript/type-aliases/FtmsMeasurementDecodeResult.md)

Defined in: [packages/typescript/src/measurement.ts:219](https://github.com/deancochran/ftms/blob/2586e33ac88d5d945d9658e063bb909cd58462bd/packages/typescript/src/measurement.ts#L219)

Decode any currently specified FTMS machine-data characteristic. The UUID,
rather than packet shape, selects the layout. Status and unknown characteristics
are explicitly unsupported by this measurement-only function.

## Parameters

### characteristicUuid

`string`

### data

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

### options?

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

## Returns

[`FtmsMeasurementDecodeResult`](https://deancochran.github.io/ftms/api/typescript/type-aliases/FtmsMeasurementDecodeResult.md)
