File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
examples/BLE_EddystoneTLM_Beacon Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,11 @@ void setBeacon() {
4747 eddystoneTLM.getTemp () / 256 ,
4848 eddystoneTLM.getTemp () % 256 * 100 / 256 );
4949
50- NimBLEAdvertisementData oAdvertisementData = BLEAdvertisementData ();
51- NimBLEAdvertisementData oScanResponseData = BLEAdvertisementData ();
50+ NimBLEAdvertisementData oAdvertisementData = BLEAdvertisementData ();
51+ NimBLEAdvertisementData oScanResponseData = BLEAdvertisementData ();
52+ NimBLEEddystoneTLM::BeaconData beaconData = eddystoneTLM.getData ();
5253 oScanResponseData.setServiceData (NimBLEUUID (" FEAA" ),
53- reinterpret_cast <const uint8_t *>(&eddystoneTLM. getData () ),
54+ reinterpret_cast <const uint8_t *>(&beaconData ),
5455 sizeof (NimBLEEddystoneTLM::BeaconData));
5556
5657 oAdvertisementData.setName (" ESP32 TLM Beacon" );
You can’t perform that action at this time.
0 commit comments