C# Code Audit


I have some code for my Arduino Mega and it is a loop, every 3 minutes it posts to a SIM7000A card and goes back to sleep.

It will run a 'random' number of times and then stall out. Sometimes it runs 120 times then stalls and sometimes it runs 6 times and stalls.

I would like someone to check out my code and clean up any issues found.

It is 528 lines. I can pay $100 today if someone wants to run through it.


Why not just attach your sketch to your forum post and allow many eyes to make the errors shallow. If it needs significant work then you can still consider hiring someone.
You should also add a wiring diagram as well, including details of how you are powering things, as the problem could just as likely be on the hardware side.