Arduino and ESP8266 data communication using i2c

Copy the characters received into your variable until you see the "," then copy the rest into the second into the second variable. Do not save the ,.
It might be easier if you send the first byte as the length then send two messages. Using the comma or any other character you need to be careful as it cannot appear in your string.

1 Like