UDP Socket lambda #5801
matt-robbins
started this conversation in
General
Replies: 3 comments 1 reply
-
I'm having the same issues. Did you ever find a solution on how to send udp packets? tx! |
Beta Was this translation helpful? Give feedback.
0 replies
-
The socket class doesn't implement UDP for ESP8266. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, I noticed this as well after digging a bit. Sorry, should have
mentioned that.
I don’t know that I have the bandwidth to tackle it, and I’ve since
redesigned my system to use different protocols, but this (UDP on ESP8266)
still does seem like it would be a very useful feature, though it is
admittedly a bit out of scope for typical home automation stuff.
…On Mon, Mar 4, 2024 at 1:41 AM Samuel Sieb ***@***.***> wrote:
The socket class doesn't implement UDP for ESP8266.
—
Reply to this email directly, view it on GitHub
<#5801 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB63HYK3OT634LK2B3QK2JLYWQJSLAVCNFSM6AAAAAA7TJPZHKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DMNRSGY2TM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
Not sure this is the right forum for this, but I am trying to send UDP packets using an on_value trigger for a current sensor (cse7766), following the instructions in this page: https://esphome.io/cookbook/lambda_magic.html
I couldn't get it to compile as-is, but then I tried using the esphome::socket::socket class, which does compile, but when I try to sock->sendto(...), I get a return of 0 for a non-zero packet length, and the packet appears never to be sent. Can anyone comment on this? I feel like this should be a fairly straightforward task, but it seems like I'm missing something. Help!
Beta Was this translation helpful? Give feedback.
All reactions