My climat station
PasskeyAscii Class Reference
Passkey stored as a string of digits. More...
#include <BLETypes.h>
Public Member Functions | |
| PasskeyAscii () | |
| Default to all zeroes. | |
| PasskeyAscii (const uint8_t *passkey) | |
| Initialize a data from a string. | |
| PasskeyAscii (passkey_num_t passkey) | |
| Initialize a data from a number. | |
| operator passkey_num_t () | |
| Cast to number. | |
| uint8_t * | value () |
| Return the pointer to the buffer holding the string. | |
Static Public Member Functions | |
| static uint32_t | to_num (const uint8_t *ascii) |
| Convert ASCII string of digits into a number. | |
Detailed Description
Passkey stored as a string of digits.
Definition at line 196 of file BLETypes.h.
Constructor & Destructor Documentation
| PasskeyAscii | ( | ) |
Default to all zeroes.
Definition at line 204 of file BLETypes.h.
| PasskeyAscii | ( | const uint8_t * | passkey ) |
Initialize a data from a string.
- Parameters:
-
[in] passkey value of the data.
Definition at line 213 of file BLETypes.h.
| PasskeyAscii | ( | passkey_num_t | passkey ) |
Initialize a data from a number.
- Parameters:
-
[in] passkey value of the data.
Definition at line 226 of file BLETypes.h.
Member Function Documentation
| operator passkey_num_t | ( | ) |
Cast to number.
Definition at line 237 of file BLETypes.h.
| static uint32_t to_num | ( | const uint8_t * | ascii ) | [static] |
Convert ASCII string of digits into a number.
- Parameters:
-
[in] ascii ASCII string of 6 digits stored as ASCII characters
- Returns:
- Passkey as a number.
Definition at line 246 of file BLETypes.h.
| uint8_t* value | ( | ) |
Return the pointer to the buffer holding the string.
Definition at line 257 of file BLETypes.h.
Generated on Tue Jul 12 2022 14:26:56 by
1.7.2
Gleb Klochkov