I am writing myself a program for the ESP-12 that is supposed to receive data from the UART, "slice" it and send it on over WiFi....
I'm stuck with formatting the data and can't move on ;(
To the point...
The data I send to the ESP looks more or less like this:
the a, b, c and ":" is constant, and "123", "456", "789" are my variables I want to work on. The variables are 1 to 7 digits long sometimes there is a "-" sign
How do I "slice" the string and substitute each variable further in the code?
I think it was best to cut everything between the constant "a:" and the space, but how do I do that?
If I do it this way I will send to ESP:
and in ESP:
then the variables must be of fixed length, but this is not the case
Thanks in advance for your help.
I'm stuck with formatting the data and can't move on ;(
To the point...
The data I send to the ESP looks more or less like this:
Code: VB.net
the a, b, c and ":" is constant, and "123", "456", "789" are my variables I want to work on. The variables are 1 to 7 digits long sometimes there is a "-" sign
How do I "slice" the string and substitute each variable further in the code?
I think it was best to cut everything between the constant "a:" and the space, but how do I do that?
If I do it this way I will send to ESP:
Code: VB.net
and in ESP:
Code: Lua
then the variables must be of fixed length, but this is not the case
Thanks in advance for your help.