BLEUUID Class

BLEUUID Class

Description
A class used for creating and managing UUIDs.

Syntax
class BLEUUID

Members

Public Constructors
BLEUUID::BLEUUIDCreate a UUID object
Public Methods 
BLEUUID::strGet the character string representation of UUID
BLEUUID::dataGet the binary representation of UUID
BLEUUID::lengthGet the length of UUID

BLEUUID::BLEUUID

Description
Create a UUID object from a UUID character string

Syntax
BLEUUID(const char* str);

Parameters
str: UUID character string used to created object

Returns
The function returns nothing.

Example Code
NA

Notes and Warnings
Include “BLEUUID.h” to use class function.
 

BLEUUID::str

Description
Get the character string representation of UUID

Syntax
const char* str(void);

Parameters
The function requires no input parameter.

Returns
Pointer to the character string initially used to create the UUID

Example Code
NA

Notes and Warnings
Returned pointer is of const char* type and will not allow changing of the string.
 

BLEUUID::data

Description
Get the binary representation of UUID

Syntax
const uint8_t* data(void);

Parameters
The function requires no input parameter.

Returns
Pointer to an unsigned 8-bit integer array containing the UUID expressed in binary form

Example Code
NA

Notes and Warnings
Returned pointer is of const uint8_t* type and will not allow changing of the data.
 

BLEUUID::length

Description
Get the length of UUID

Syntax
uint8_t length(void);

Parameters
The function requires no input parameter.

Returns
Length of the UUID, in terms of bytes

Example Code
NA

Notes and Warnings
A 4-character UUID will be 16 bits / 2 bytes long.
A 32-character UUID will be 128 bits / 16 bytes long.

Copyrights ©瑞晟微电子(苏州)有限公司 2021. All rights reserved.
请先确认已安装QQ通讯软体