Hi All,
I am currently working on a project that receive data from multiple sensors and send them via GSM to an IoT platform. My Arduino Mega is receiving the data in hex. The data is 8bits with 2 stop bits.
The start byte is 0x02 and the end byte is 0x03. Data is being obtained every 30 seconds.
I want the start reading the data when 0x02 is seen on the serial monitor and stop reading when 0x03 is reach. I want to store the data in an Array, then be able to call specific data that I need from this array.
There will be 31 data bytes all together. How will I proceed forward to implement this ?