There is a task to receive the code in the form of JSON from the PC, parse it and, in fact, execute. One thing is when you need to flash the LED. delay and number of blinks. But when it comes to a large number of interrelated actions with conditions and cycles, I get lost. How to describe it in the controller. For example, if the sensor worked, blink the LED. Need some kind of interpreter to put, like forth, or is there a simple solution for this problem?

  • The problem is a higher level. Just send the commands that will execute the code in the MC - this is one thing. But to send the conditions under which this code must be met, is quite another. For me at least. - Ilya
  • one
    The code that is wrapped in JSON, what is it? Or is it also up to you? Any illustrative example would help. - tum_
  • As far as I understand, you need - 1. Share JSON. 2. Determined with the teams (in h with the conditional teams). 3. Write the executive part for the teams. Right? What is the actual problem? Or do you want a straightforward "simple" compiler? - nick_n_a
  • Unfortunately, this is only in my head. JSON in this case is not important. It is important whether it is possible with the help of some external commands and code in the MC to describe the conditions and cycles. - Ilya
  • Maybe. An array of commands. Data array. Can be implemented in two arrays. Can one. Read the "state machines" - nick_n_a

0