File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,16 @@ String BLEDevice::advertisedServiceUuid(int index) const
184
184
return serviceUuid;
185
185
}
186
186
187
+ bool BLEDevice::hasAdvertisementData () const
188
+ {
189
+ return (_eirDataLength > 0 );
190
+ }
191
+
192
+ int BLEDevice::advertisementDataLength () const
193
+ {
194
+ return _eirDataLength;
195
+ }
196
+
187
197
int BLEDevice::advertisementData (uint8_t value[], int length) const
188
198
{
189
199
if (length > _eirDataLength) length = _eirDataLength;
Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ class BLEDevice {
59
59
String advertisedServiceUuid () const ;
60
60
String advertisedServiceUuid (int index) const ;
61
61
62
+ bool hasAdvertisementData () const ;
63
+ int advertisementDataLength () const ;
62
64
int advertisementData (uint8_t value[], int length) const ;
63
65
64
66
virtual int rssi ();
You can’t perform that action at this time.
0 commit comments