Page 1 of 1

[SOLVED] Doubt about default package length in socket server

Posted: Mon Feb 27, 2017 2:03 pm
by Suhanko
Hello, guys. I'm sorry disturb you, but I did a webserver to turn on relay using microPython, but I couldn't increase my variable was storing all html code. I wrote this source in my variable called "html":
http://pastebin.com/XMndVaT5

I tried use CSS resources to give some charm to the terrible and poor page, but I saw just a few changes as result and my buttons was not included in html page anymore.

Does someone knows what could be happening?

Re: Doubt about default package length in socket server

Posted: Mon Feb 27, 2017 3:59 pm
by deshipu
Use sendall in place of send in your web server.

Re: [SOLVED] Doubt about default package length in socket server

Posted: Mon Feb 27, 2017 4:03 pm
by Suhanko
Thank you very much! The sendall solved all problems!
:-D