Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: mDotEvent.h
- Revision:
- 180:a78812699800
- Parent:
- 176:e8835022d431
--- a/mDotEvent.h Tue Sep 18 08:25:04 2018 -0500
+++ b/mDotEvent.h Tue Sep 18 10:59:15 2018 -0500
@@ -64,7 +64,6 @@
RxPort(0),
RxPayloadSize(0),
BeaconLocked(false),
- BeaconPayloadSize(0U),
PongReceived(false),
PongRssi(0),
PongSnr(0),
@@ -220,12 +219,10 @@
logDebug("mDotEvent - RxDone");
}
- virtual void BeaconRx(uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr) {
+ virtual void BeaconRx(const lora::BeaconData_t& beacon_data, int16_t rssi, int8_t snr) {
logDebug("mDotEvent - BeaconRx");
BeaconLocked = true;
-
- memcpy(BeaconPayload, payload, size);
- BeaconPayloadSize = size;
+ BeaconData = beacon_data;
}
virtual void BeaconLost() {
@@ -296,8 +293,7 @@
uint8_t RxPayloadSize;
bool BeaconLocked;
- uint8_t BeaconPayload[25];
- uint8_t BeaconPayloadSize;
+ lora::BeaconData_t BeaconData;
bool PongReceived;
int16_t PongRssi;