Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Serial readString problem

$
0
0
  1. void serialEvent(Serial s){
  2.   String datastring = s.readString();
  3.   
  4.   if(datastring.contains("data:")){
  5.         print("found data");
  6.   }
  7.   print(datastring);
  8.   print(datastring.length()); 
  9.   datastring=null;
  10. }
This leaves printed in the terminal in the terminal 
  1. some data: dt:19.90 tp:22.0 wa:0
  2. 111111111111111111111111111111111


Viewing all articles
Browse latest Browse all 1768

Trending Articles