In the second revision requesting PID 01 MODE 0C worked great, but when I added some lines and tested it with my desktop application..
After a while the LED 13 turns on and the board is not responding anymore. The LED is not HIGH, but like sending DigitalWrite(125); to it.
Could you take a look at the code and tell me what's going wrong?
You are using the String library which is known to cause lots of problems, in particular a sketch will suddenly lose its mind and then "After a while the LED 13 turns on and the board is not responding anymore".
Rewrite your code so that it does not use the String library. You might also have to move more of your constant data into PROGMEM but fix up the String problem first.
Many thanks! I wasn't using "String" from the beginning, but when I got into problems returning strings I searched the web and decided to make a use of "String"..
Are there maybe already patches online to fix "String"? It works great in my case, except of this problem
Are there maybe already patches online to fix "String"? It works great in my case, except of this problem
Sure. Highlight all String uses in your program, and hit the delete key. I presume that "this problem" is memory exhaustion/corruption. Stop using the String class, and that will stop happening.
Nothing that the String class does can not be done using strings.