Hi, All
Maybe do we have any B4R example code to use the sketch like a state-machine ?
Where there are long algorithm of actions according to the previous actions results...
Say, one scenario:
The data1 should be sent to the server only after:
And each action needs time to execute, timeout to wait for result - and can be at least true\false resulted.
It's good to have some state-machine module or class or ....
Maybe do we have any B4R example code to use the sketch like a state-machine ?
Where there are long algorithm of actions according to the previous actions results...
Say, one scenario:
The data1 should be sent to the server only after:
- Internet is connected
- Command1 is requested from the server (https)
- and the response is received
- and parsed.
- Data1 is measured from a Sensor1
- The power of Sensor1 is switched on before measuring.
- Data1 is measured from a Sensor1
- and parsed.
- and the response is received
- Command1 is requested from the server (https)
And each action needs time to execute, timeout to wait for result - and can be at least true\false resulted.
It's good to have some state-machine module or class or ....