Below is a REALLY simple script. At first I thought it demonstrated how the Serial class was borked for most data types. Then I realized it demonstrates just creating a String variable causes the Arduino to lock up: Code: //String testString("Test string class"); void setup() { Serial.begin(9600); } void loop() { Serial.println("Test raw char *"); //Serial.print(testString); delay(1000); }
Correction to my earlier post. It's 'Serial' rather than 'String' that seems to have issues. The 'Serial' library is documented as supporting "any data type" (not sure they mean that literally, but for sure Strings and Floats are supposed to work out of the box). Clearly it doesn't. Here is a workaround. Use an array of chars with a Null terminator. char myTestString [ ] = "Test raw char *\0"; Serial.println(myTestString);
Oh no. Serial has issues with sending anything other than ints and char*. You can't even CREATE an instance of the String class as well. At this point I'm REALLY curious about the QA proceedures being employed by the Udoo team.
jdonavan, no need for that! We appreciate all the issues our users will find using UDOO so we can improve the product. We're working to fix the problem and we'll release the new IDE asap.