c - Arduino crash after 6 hours -


i wrote arduino sketch arduino uno rev3 monitor temperature , electrical current. arduino 'crashes' after 6+ hours.

after resetting arduino, runs again. did write cause problem in code?

code, @ pastebin

http://pastebin.com/1g8swhge

well, 1 thing, you're overflowing string buffers.

you've assigned 15 bytes cc

char cc[15]; 

but have code:

strncat(cc,o,20);   strncat(cc,"|",20); strncat(cc,m,20);   strncat(cc,"|",20); strncat(cc,n,20); 

that put 62 bytes in there. same true of other buffers.

in addition, you're using multiple 3rd party libraries. 1 of contain memory leak.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -