We are using PublishQueueAsyncRK library, which is amazing, on our BSOM devices.
Our devices use an rfid reader along with other sensors. Sometimes the rfid reader stops working on our system. This is currently fixed with a particle function initiated device reset, which does indeed fix the rfid comms issue.
After reset, the device starts resending old data publishes that have been previously sent to the cloud. This issue has just occurred and now the device is resending all the data from the last 36 hours. I have seen the same behaviour across multiple of our devices.
So it seems like even though the data has been successfully sent, it is not clearing it correctly from the sd card, then when I see the RFID comms issue and initiate a reset, it then resends a bunch of data. Does anyone have any ideas about how I should trouble shoot this further?
I am using an SD card and both the PRIVATE and WITH_ACK flags for sending the data.
Thanks in advance