1.

What is the function in Arduino that is capable of reading Strings from a stream and store the acquired value into a String?(a) Stream.readstring()(b) Stream.stringread()(c) Stream.readString()(d) Stream.readfromstring()I got this question in an interview.My enquiry is from Serial and Stream Communications topic in division Arduino Programming of Arduino

Answer»

Right choice is (C) Stream.readString()

The explanation is: The Stream.readString() is a FUNCTION that belongs to the Stream CLASS. It’s capable of reading any String from a stream and then store the output into a String. This function can also be called from the Wire class. There is a TIMEOUT for this reading which is defined by the setTimeout() function.



Discussion

No Comment Found

Related InterviewSolutions