VelocAI logo Bluetooth Explorer Documentation

Bluetooth GATT Characteristic Reference

Magnetic Declination (0x2A2C)

org.bluetooth.characteristic.magnetic_declination

Magnetic Declination is defined in the Bluetooth GATT XML specification with type org.bluetooth.characteristic.magnetic_declination and UUID 0x2A2C.

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
NameMagnetic Declination
UUID0x2A2C
Typeorg.bluetooth.characteristic.magnetic_declination
XML RootCharacteristic
Source Fileorg.bluetooth.characteristic.magnetic_declination.xml
Field Count1

Field Specification

Parsed field definitions from the source XML value structure.

Field Requirement Format Unit Exponent Notes
Magnetic DeclinationMandatoryuint16org.bluetooth.unit.plane_angle.degree-2Unit is in degrees with a resolution of 0.01 degrees

Byte Layout and Decode

Payload length is 2 bytes.

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

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 Magnetic Declination in Bluetooth GATT?

Magnetic Declination is defined as a Bluetooth GATT characteristic entry with type org.bluetooth.characteristic.magnetic_declination and UUID 0x2A2C.

What UUID identifies Magnetic Declination?

The UUID for Magnetic Declination is 0x2A2C.

How should I parse Magnetic Declination?

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.