File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 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
184184 return serviceUuid;
185185}
186186
187+ bool BLEDevice::hasAdvertisementData () const
188+ {
189+ return (_eirDataLength > 0 );
190+ }
191+
192+ int BLEDevice::advertisementDataLength () const
193+ {
194+ return _eirDataLength;
195+ }
196+
187197int BLEDevice::advertisementData (uint8_t value[], int length) const
188198{
189199 if (length > _eirDataLength) length = _eirDataLength;
Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ class BLEDevice {
5959 String advertisedServiceUuid () const ;
6060 String advertisedServiceUuid (int index) const ;
6161
62+ bool hasAdvertisementData () const ;
63+ int advertisementDataLength () const ;
6264 int advertisementData (uint8_t value[], int length) const ;
6365
6466 virtual int rssi ();
You can’t perform that action at this time.
0 commit comments