Martijn Thé
Martijn Thé

Reputation: 4704

What GATT services use multiple characteristics with the same UUID?

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")

Upvotes: 4

Views: 1835

Answers (1)

Tian
Tian

Reputation: 56

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.

Upvotes: 4

Related Questions