NoWiresGB / RFM69-Gateway

A D1 mini based gateway for HopeRF modules to MQTT
1 stars 0 forks source link

Duplicate events #40

Closed trizmark closed 3 years ago

trizmark commented 3 years ago

Still seeing duplicate events:

[RFM69] Ack requested, sending: sent [RFM96] RCVD [Node:4 RSSI:-53] [RFM96] Data received [6b]: [04 00 06 01 9F 02] [MQTT ] Pushing data to MQTT: done [RFM69] Ack requested, sending: sent [RFM96] RCVD [Node:4 RSSI:-53] [RFM96] Data received [6b]: [04 00 06 01 9F 02] [MQTT ] Pushing data to MQTT: done

image

trizmark commented 3 years ago

Could be down to the sender - need to check the code of the sender.

trizmark commented 3 years ago

image

trizmark commented 3 years ago

Hmmm.... we don't define retry wait time, which based on the code means immediate retry

bool RFM69_ATC::sendWithRetry(uint16_t toAddress, const void* buffer, uint8_t bufferSize, uint8_t retries, uint8_t retryWaitTime) {

if (radio.sendWithRetry(GATEWAYID, (const void*)(&txTriggerPayload), sizeof(txTriggerPayload)))

trizmark commented 3 years ago

image

trizmark commented 3 years ago

Looks like power issue. Overnight testing with proper power source showed no duplicates: image