GattCharacteristic now uses UUID instead of uint16_t
This commit is contained in:
parent
73e104a011
commit
e1ae67ab8c
2 changed files with 17 additions and 1 deletions
|
@ -58,6 +58,18 @@ GattCharacteristic::GattCharacteristic(uint16_t id,
|
|||
{
|
||||
/* empty */
|
||||
}
|
||||
GattCharacteristic::GattCharacteristic(const uint8_t longUUID[UUID::LENGTH_OF_LONG_UUID],
|
||||
uint16_t minLen,
|
||||
uint16_t maxLen,
|
||||
uint8_t props) :
|
||||
uuid(longUUID),
|
||||
lenMin(minLen),
|
||||
lenMax(maxLen),
|
||||
handle(),
|
||||
properties(props)
|
||||
{
|
||||
/* empty */
|
||||
}
|
||||
|
||||
/**************************************************************************/
|
||||
/*!
|
||||
|
|
|
@ -413,9 +413,13 @@ public:
|
|||
uint16_t minLen = 1,
|
||||
uint16_t maxLen = 1,
|
||||
uint8_t properties = 0);
|
||||
GattCharacteristic(const uint8_t longUUID[UUID::LENGTH_OF_LONG_UUID],
|
||||
uint16_t minLen = 1,
|
||||
uint16_t maxLen = 1,
|
||||
uint8_t properties = 0);
|
||||
virtual ~GattCharacteristic(void);
|
||||
|
||||
uint16_t uuid; /* Characteristic UUID */
|
||||
UUID uuid; /* Characteristic UUID */
|
||||
uint16_t lenMin; /* Minimum length of the value */
|
||||
uint16_t lenMax; /* Maximum length of the value */
|
||||
uint16_t handle;
|
||||
|
|
Loading…
Reference in a new issue