Allow pins/settings to be defined in INI file (#597)
* Allow pins/settings to be defined in INI file * Open to make publishing ManufacturerData optional
This commit is contained in:
1 parent
470790b42e
commit
9fc5ba99f5
9 files changed
+90
-56
No files matched your search
@@ -341,8 +341,10 @@ class MyAdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks
|
||||
{ //if not black listed mac we go AND if we have no white mac or this mac is white we go out
|
||||
if (advertisedDevice.haveName())
|
||||
BLEdata.set("name", (char *)advertisedDevice.getName().c_str());
|
||||
#if pubBLEManufacturerData
|
||||
if (advertisedDevice.haveManufacturerData())
|
||||
BLEdata.set("manufacturerdata", (char *)advertisedDevice.getManufacturerData().c_str());
|
||||
#endif
|
||||
if (advertisedDevice.haveRSSI())
|
||||
BLEdata.set("rssi", (int)advertisedDevice.getRSSI());
|
||||
if (advertisedDevice.haveTXPower())
|
||||
|
||||
Reference in new issue
Block a user