4

The Bluetooth v4.0 specification says:

A service may have multiple characteristic definitions with the same Characteristic UUID. [1]

Are there any GATT services that have multiple characteristics with the same UUID?

What is the use case for this?

[1] (Vol 3, Part G, 3.3.1 "Characteristic Declaration")

Martijn Thé
  • 4,674
  • 3
  • 29
  • 42

1 Answers1

4

Normally it won't be that useful… A simple use case can be:

Like if I have a BTLE device try to measure the Magnetic Flux Density difference between two points in space and also provide the flux density on both points to user, instead of publishing two Environmental Sensing services, it's making more sense to publish one Environmental Sensing service with two "Magnetic Flux Density - 2D" characteristics.

Tian
  • 56
  • 1
  • Thanks, Tian, for point to the ESS spec. This BT-SIG-gratified specification does indeed make (optional) use of multiple instances of the same Characteristic UUID. From the spec: "This allows a sensor to report its readings in more than one way. For example, a temperature sensor may provide both instantaneous and daily average readings." https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=294797 – Martijn Thé Dec 13 '14 at 23:04