Hi community,
I'm doing a client-server application with a state machine.
The server is programming in one ESP32, and it works ok.
The problem is the client. I need that client do this:
1. Connect with the server. (OK)
2. Send data to the server with parameters. (OK)
When the server receive the parameters, it process the data and send a number of frames know for the client. Is the same tath the frequency parameter sended from the client.
3. I need that the client, repeat the state where receive one frame and process it, the same number of times like frames has sended.
4. This information processed generate a waveform time signal, and I want to have an array with all signals.
The problem is coordinate the TCP read function, with the while loop and the Case structure.
Please help, because is very important for my studies. And sorry for my bad English.