New answers tagged


is the arduino code giving error because you have initialized the array data with length of 1 (int data[1];) and in the for loop the length is exceeding the allocated length of the string: for (int i = 0; i < 2; i++) { data[i] =; }


All right so I was able to fix the problem. The Arduino IDE I was using had been installed from the Ubuntu Software Center. I uninstalled it. Then I reinstalled the Arduino IDE by downloading it from the website and doing a manual install in /opt. Now it works awesome.

Top 50 recent answers are included