7:50 am
May 10, 2016
Hello ,
I am simply trying to read serial data in the form of string and simply writing again in the form of string. Their is serial write data into string function but not for reading. How can I convert data into string. I have tried something by my own of which I am attaching the screenshot. Please guide me further.
Thanks
8:10 am
March 2, 2016
Hello Vikas,
You should use convert byte array to string. to convert the data to string. But wait for serial data & read it as it receives.
Beware of memory management technique else u will ran out of memory.
Regards
Love Diwan | http://www.pujacontrols.com
8:28 am
May 10, 2016
Thanks for your reply . but as you can see in the screenshot I have already used byte array to string converter and I am simply taking analog data from pin A0 but in the output serial monitor I am just getting some random numbers which is positively not the reading of the sensor which is connected. Even if I try to take the digital reading as true or false and changing it into 0 or 1 using comparison function "select" and converting it into string I am getting again random numbers.
15
1 Guest(s)