I want to set up an Arduino (ESP32) to respond to a request for data from another device. In this case a pc using matlab. I have the matlab part working. Where can I find some examples that are not webserver or HTTP format. Just a simple matlab (or any other computer) askes for data and the arduino responds.
Additional information, as I wake up. I have a web server up and running. For this application I don't need/want a web server. I am collecting information on the ESP32 (sensor data) that I want to transfer to MATLab. The data on the ESP32 will be stored in an array The plan is/was that MATLab would ask for data every so many minutes. When MATLab requests the ESP would send the latest data than clear the data on the ESP and start gathering again.
Sorry for the fragmented question but that is how I think.