I resume this post.
I need help reading data from Mikrotik arduino via USB.
On the Arduino side, I can implement a serial protocol that responds to the mikrotik when making requests.
For example, I will connect a ds18b20 temperature sensor to the arduino which will store the temperature read every minute on a variable.
Mikrotik will interrogate arduino via serial (usb) (via a protocol to be defined) by reading the variable.
I have read various posts where the telnet connection is used, with the ethernet shied on arduino installed.
I don't have the internet shied so, I would like to do something simpler if it were possible.
I would need the configuration and the script on the mikrotik side.
Thank you in advance
This can be done from RouterOS as well.
Make simple Arduino||STM32 board with temperature sensor attached (DHT22 for example), that listens to serial input and answers with sensor data.
In RouterOS if serial device is attached - disabled ppp-client is created. Make simple script, that does at-chat to this port and sends data, to database (Grafana for example).
If anyone is interested we can make small write up with examples for this use case.