I need some help in my project. I used ESP to communicate between a client through the browser and the arduino. The client is supposed to sent a value to esp, and then esp will send it to arduino. This value used to run BLDC motor in a speed regarding to what the client send.
My problem is, when I try to use this value to drive the motors, I got this error message: "no matching function for call to 'Servo::write(String&)'".
I believe that the error reason is servo can not deal with string, but how can i solve this problem?
Ak96:
I believe that the error reason is servo can not deal with string
Note that a String and a string are two different things. It's generally advised to never use String for Arduino projects, even though the authors of the ESP8266 hardware package used them quite often: