Weird behavior, counter starts skipping first pulse after being on for 24hrs

Nodemcu, platformio, arduino for the language:

I have built a vending machine, and after 24 hours it stops counting the 1st pulse from the bill validator. As soon as the device is reset, it starts working perfectly again. This can't be normal haha! I am wondering if there is a way to do a full reset of the device after XX amount of time?

Heavy use of "String" class could cause the symptom you describe. I'm suggesting to open up the hood, investigate the problem and fix it instead of side-stepping approach you are describing.

What if a custom is inserting a bill at the exact moment your vending machine resets?

There is almost no use (none that I can remember, code is at home) of the String class...

I have a counter reset that I would throw the esp.reset(). into

Of course, if you post your code you would get several experienced eyes looking at it.

Read How to use this forum, post your sketch- all of it- using code tags.

A schematic in CAD or a picture of a hand drawn circuit in jpg or png- (not a pretty Fritzing drawing), would also help.

@Steve, I was trying to not share my code as I don't want someone to take this idea commercial.

theomajigga:
@Steve, I was trying to not share my code as I don't want someone to take this idea commercial.

So how do you want us to bill you?

arduino_new:
So how do you want us to bill you?

I'll pay, gladly, and honestly. I just was trying to see if there were any known issues with nodemcu and arduino with this problem.