Closed solidstatebird closed 1 year ago
Packet miscount issue fixed in 297dc9b
As for the hanging behavior it appears to never return from this line:
Loom_BatchSD:19 String fileOutput = sdMan->readFile(sdMan->getBatchFilename());
This has all been fixed in the string-overhaul branch
Describe the bug In Loom a079c45, MQTT upload will hang the program execution if the current batch is too large. Additionally, MQTT counts the packets in a batch incorrectly, counting one packet past the limit, which is not transmitted with the next batch.
Hardware in Use Feather m0 with ATWINC1500 plugged into Hypnos v3.3 with SD card.
To Reproduce Steps to reproduce the behavior:
Expected behavior All packets should be uploaded to the database, without any omissions or program crashes.
Code This code generates packets with dummy data and attempts to upload them in batches.
arduino_secrets.h:
Output Batch size (6) is too large (code crash)
Batch size (3) is sufficiently small (packet miscount)