VelocAI logo Bluetooth Explorer Documentation

Bluetooth GATT Characteristic Reference

Measurement Interval (0x2A21)

org.bluetooth.characteristic.measurement_interval

This characteristic is capable of representing values from 1 second to 65535 seconds which is equal to 18 hours, 12 minutes and 15 seconds.

Quick Summary

Payload length is 2 bytes. This page is generated from official GATT XML and presented as implementation-ready guidance.

At a Glance

Key reference details for BLE implementation, interoperability testing, and AI-assisted troubleshooting.

PropertyValue
NameMeasurement Interval
UUID0x2A21
Typeorg.bluetooth.characteristic.measurement_interval
XML RootCharacteristic
Source Fileorg.bluetooth.characteristic.measurement_interval.xml
Field Count1

Field Specification

Parsed field definitions from the source XML value structure.

Field Requirement Format Unit Exponent Notes
Measurement IntervalMandatoryuint16org.bluetooth.unit.time.second--

Byte Layout and Decode

Payload length is 2 bytes.

function decodePayload(dataView, offset = 0) {
  const measurement_interval = dataView.getUint16(offset + 0, true);
  return { measurement_interval };
}

Use Cases and Integration Notes

BLE Telemetry

Map characteristic values into dashboards and alerts for device observability.

Firmware Regression

Compare decoded fields across builds to detect protocol or scaling changes.

App Integration

Build stable parsing paths that convert raw payloads into typed app models.

Implementation Checklist

  • Validate payload length and mandatory fields before decode.
  • Decode with Bluetooth-specified signedness, unit, and exponent handling.
  • Convert units at presentation boundaries to avoid drift in business logic.
  • Persist raw packets and decoded values for reproducible troubleshooting.

FAQ

What is Measurement Interval in Bluetooth GATT?

Measurement Interval is defined as a Bluetooth GATT characteristic entry with type org.bluetooth.characteristic.measurement_interval and UUID 0x2A21.

What UUID identifies Measurement Interval?

The UUID for Measurement Interval is 0x2A21.

How should I parse Measurement Interval?

Payload length is 2 bytes.

Where does this definition come from?

This page is generated from the Bluetooth SIG mirror XML in the oesmith/gatt-xml repository.

How does this page support BLE implementation?

The page combines structured tables, practical Q&A, and JSON-LD metadata to help teams validate integrations and troubleshoot consistently.