Running Web Server but no delay to PWM

Someone456
Posts: 3
Joined: Thu Feb 23, 2017 5:50 pm

Running Web Server but no delay to PWM

Postby Someone456 » Thu Feb 23, 2017 5:57 pm

I went to running a web service with very easy servo control

i control servo by i2c pwm ic,

i must write new value every 10ms to pwm ic.

but the server.handleClient() takes about 100ms to finish a request.

how can i avoid there thing.

can i make a high priority interrupt for servo control?

using arduino ide.

pratik

Re: Running Web Server but no delay to PWM

Postby pratik » Wed Mar 01, 2017 2:12 pm

Are you using SSL?
And it should not take that long for server to respond, but I am not familiar with the Arduino IDE implementation for ESP8266. Maybe the libraries are sloppy?
You can try an empty handler to see how long it takes to exit...

Who is online

Users browsing this forum: No registered users and 60 guests