I have to manage servos from a computer.
So I have to send manage messages from computer to Arduino. I need manage the number of servo and the corner. I\'m thinking
This code reads string until it sees '>' character
'>'
void loop() { // put your main code here, to run repeatedly: String msg = getMessage(); } String getMessage() { String msg = ""; while (Serial.available()>0) { msg = Serial.readStringUntil('>'); } return msg; }