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: Mote.h
- Revision:
- 137:893a90334924
- Parent:
- 135:69d2d725ea1e
- Child:
- 172:7ec44396a51b
diff -r d7d7093d4754 -r 893a90334924 Mote.h
--- a/Mote.h Fri Feb 16 16:00:18 2018 -0600
+++ b/Mote.h Thu Feb 22 11:36:24 2018 -0600
@@ -65,7 +65,7 @@
virtual void JoinFailed(uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr);
/**
- * Fired when non duplicate packet is received and MIC is valid
+ * Fired when packet is received and MIC is valid
* @param port of packet
* @param payload received bytes
* @param size number of received bytes
@@ -74,8 +74,10 @@
* @param ctrl Downlink control field of packet
* @param slot rx window packet was received
* @param retries number of attempts before ack was received
+ * @param address of the end device
+ * @param dupRx set if this packet has already been received
*/
- virtual void PacketRx(uint8_t port, uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr, lora::DownlinkControl ctrl, uint8_t slot, uint8_t retries = 0, uint32_t address = 0);
+ virtual void PacketRx(uint8_t port, uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr, lora::DownlinkControl ctrl, uint8_t slot, uint8_t retries = 0, uint32_t address = 0, bool dupRx=false);
/**
* Fired when radio has received a packet, packet is not validated