[SOLVED] Doubt about default package length in socket server

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Suhanko
Posts: 7
Joined: Sun Feb 12, 2017 2:23 pm

[SOLVED] Doubt about default package length in socket server

Post by Suhanko » Mon Feb 27, 2017 2:03 pm

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?
Last edited by Suhanko on Mon Feb 27, 2017 4:02 pm, edited 1 time in total.

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: Doubt about default package length in socket server

Post by deshipu » Mon Feb 27, 2017 3:59 pm

Use sendall in place of send in your web server.

Suhanko
Posts: 7
Joined: Sun Feb 12, 2017 2:23 pm

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

Post by Suhanko » Mon Feb 27, 2017 4:03 pm

Thank you very much! The sendall solved all problems!
:-D

Post Reply