ethernet - Receive multiple client request in aRest arduino as web server -
i pretty new arduino, stuck arduino code need receive multiple sequential request client , update value in arduino board. using ethernet board arduino , arest library expose arduino board restful services.
please check below code , let me know should modify or edit achieve below requirements (note have commented watchdog related code),
https://gist.github.com/shaikhmshariq/36264bf20f24faf078c4155542fc6836
i need receive multiple (sequential) requests client through ethernetclient , update motor speed based on received input. when run code below,
- with watchdog - resets board , because of motor shuts down after 4 seconds not want.
- without watchdog- doesn't receive second request @ all, means server doesn't respond @ after serving first request receive instant response server.
i can't access code here due proxy problems, faced similar problem long time ago when tried configure board server. reason why service stop responding second request lack of memory. refactoring code , make use of timers instead of controling everthing main code helped me overcome problem. try use below's libary keep eyes on memory.
Comments
Post a Comment