GattCharacteristic now uses UUID instead of uint16_t

This commit is contained in:
Rohit Grover 2014-05-28 17:24:30 +01:00
parent 73e104a011
commit e1ae67ab8c
2 changed files with 17 additions and 1 deletions

View file

@ -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 */
}
/**************************************************************************/
/*!

View file

@ -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;