Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Public Member Functions
AdvertisingDataParser Class Reference
Ble » 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. More...
 
bool hasNext () const
 Return if there is advertising data element left to parse. More...
 
element_t next ()
 Return the next advertising data element. More...
 
void reset ()
 Reset the parser. More...
 

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
dataThe 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 ( )

Reset the parser.

Definition at line 105 of file AdvertisingDataParser.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.