Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support large packet publishing with ESP8266 #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hjf
Copy link

@hjf hjf commented Mar 2, 2018

When sending large packets with ESP8266's WiFiClient, the library prints a couple hundred bytes and then garbage. The Adafruit library sends 250 bytes at a time to publish the packet. This is where it fails. Fortunately, ESP8266's implementation of Client supports large packets by itself. It will take care of splitting data even beyond the IP packet's MTU.

This fix conditionally enables sending the complete package to WiFiClient with a simple IFDEF ESP8266.

Tested on Arduino 1.8.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant