![Arduino serial parse hex](https://kumkoniak.com/70.jpg)
![arduino serial parse hex arduino serial parse hex](https://hacksterio.s3.amazonaws.com/uploads/attachments/1137902/fdi5q81kb6ie13u_large1_MTdaKYOjOT.jpg)
NOTE: that Arduino serial is ASCII based and as such, the largest number that can be sent is 255. As Processing has powerful built in parsing tools ( splitTokens ) we will develop a message structure that reflects these strengths. Messages should be structured in a way that sender can format and receiver can parse.
![arduino serial parse hex arduino serial parse hex](https://dl.dropboxusercontent.com/s/fhbczrxtd7bqs8r/DSC_0003.jpg)
This post outlines a simple strategy for sending multiple data points from Arduino to Processing.
![arduino serial parse hex arduino serial parse hex](https://i1.wp.com/www.electroniclinic.com/wp-content/uploads/2020/09/control-led-using-push-button-serial-communication-between-arduinos.jpg)
Sending multiple data points can be much more complex. All I need to do is to divide the initial string which contains the data from 2 sensors in 2 variables that get updated constantly and then pass these values on to the rest of the program to make something like print on LCD.Sending a single data point from the physical world into media systems is reasonably straight forward. I'm stuck for days I don't know to do this work. Temperature = "" // Clear DatePrimite bufferįirst string it's updating when I receive new sensor data but the next 2 remains the same every time. Process message when new line character is DatePrimite Serial.print(IncomingData) //here I have my string: 20.1324325452924 which is updating properly when I have sensor values changes Gas = readString.substring(13, 16) //get the last 3 characters Temperature = readString.substring(0, 13) //get the first 13 characters I managed to divide that initial string that I receive on serial (20.1324325452924) in 2 variables but values from this 2 variables not updating like in the initial string (when sensor values are changed): My goal is to have these 2 values as 2 variables that get updated constantly and then pass these values on to the rest of the program to make something like print on LCD or something else: On coordinator, I receive wireless data from this 2 sensors(from router) perfectly.
![arduino serial parse hex arduino serial parse hex](http://4.bp.blogspot.com/-sB3UJhuqNkY/VYwJcrWoICI/AAAAAAAAAEI/mAi21Qd_djk/s1600/O_DHT11_RGB.jpg)
I send 2 sensor data from Arduino 1 (router) to Arduino to (coordinator):
![Arduino serial parse hex](https://kumkoniak.com/70.jpg)