8000 Made addData and getPayload public · benjaminaigner/esp32-snippets@f42b824 · GitHub
[go: up one dir, main page]

Skip to content

Commit f42b824

Browse files
committed
Made addData and getPayload public
1 parent 9c796bb commit f42b824

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cpp_utils/BLEAdvertising.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@ class BLEAdvertisementData {
2929
void setPartialServices(BLEUUID uuid);
3030
void setServiceData(BLEUUID uuid, std::string data);
3131
void setShortName(std::string name);
32+
void addData(std::string data); // Add data to the payload.
33+
std::string getPayload(); // Retrieve the current advert payload.
3234

3335
private:
3436
friend class BLEAdvertising;
3537
std::string m_payload; // The payload of the advertisement.
36-
37-
void addData(std::string data); // Add data to the payload.
38-
std::string getPayload(); // Retrieve the current advert payload.
3938
}; // BLEAdvertisementData
4039

4140

0 commit comments

Comments
 (0)
0