Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
AdvertisingDataParser Class Reference
[Gap]
Parse and iterate over advertising data. More...
#include <AdvertisingDataParser.h>
Data Structures | |
struct | element_t |
Representation of an Advertising Data element. More... | |
Public Member Functions | |
AdvertisingDataParser (mbed::Span< const uint8_t > data) | |
Build a parser from an array of bytes. | |
bool | hasNext () const |
Return if there is advertising data element left to parse. | |
element_t | next () |
Return the next advertising data element. | |
void | reset () |
Reset the parser. |
Detailed Description
Parse and iterate over advertising data.
Definition at line 35 of file AdvertisingDataParser.h.
Constructor & Destructor Documentation
AdvertisingDataParser | ( | mbed::Span< const uint8_t > | data ) |
Build a parser from an array of bytes.
- Parameters:
-
data The data to parse.
Definition at line 58 of file AdvertisingDataParser.h.
Member Function Documentation
bool hasNext | ( | ) | const |
Return if there is advertising data element left to parse.
Definition at line 67 of file AdvertisingDataParser.h.
element_t next | ( | ) |
Return the next advertising data element.
- Note:
- Calling this function if there is no next element is undefined behavior.
Definition at line 91 of file AdvertisingDataParser.h.
void reset | ( | void | ) |
Reset the parser.
Definition at line 105 of file AdvertisingDataParser.h.
Generated on Tue Jul 12 2022 13:55:39 by
