-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Major update #25
Major update #25
Conversation
This should add support for IPv6.
This prevents dropped data if a write to a client is cut short. Move default port number to config schema
Co-authored-by: Joshua Spence <josh@joshuaspence.com>
// Only warn on the first iteration, the finite buffer size is also used as a throttling mechanism to avoid | ||
// blocking here for too long when a large amount of data comes in. | ||
if (first_iteration) | ||
ESP_LOGW(TAG, "Incoming bytes available in stream, but outgoing buffer is full!"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably overwrite data instead of dropping data: if there are multiple clients, that means only the straggler will have problems, instead of all clients. It also prevents the possibility of lockups.
Also needs a documentation update, and a declaration of the minimum required ESPHome version. |
9b111b1
to
9710568
Compare
send_buf
for high throughput #4, but with proper handling for multiple clients.binary_sensor
#15 but refactored to not publish a state on everyloop()
.Still needs some more testing (especially w.r.t. reliability), but should be complete code-wise.