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

RS232 to UDP or TCP #574

Open
jaygrovr opened this issue Dec 6, 2023 · 5 comments
Open

RS232 to UDP or TCP #574

jaygrovr opened this issue Dec 6, 2023 · 5 comments

Comments

@jaygrovr
Copy link

jaygrovr commented Dec 6, 2023

I dont see a way to use this code to forward messages received on the uart to a UDP or TCP port? Am I missing something? I dont want to use mqtt, i just want it to send it out to a specific port so I can have node-red parse the data.

Thanks

Jason

btw, nice work on what I have so far.

@yesyesuk
Copy link

yesyesuk commented Dec 7, 2023

Hi Jason. Esp-link is a TCP server that waits for incoming connections. You need to use a client to connect to esp-link.
Esp-link is not a TCP client that makes outgoing connections to an IP:port.

Once a client is connected, esp-link will forward data Serial Port <-> TCP in both directions over that TCP connection.

@jaygrovr
Copy link
Author

jaygrovr commented Dec 7, 2023 via email

@yesyesuk
Copy link

yesyesuk commented Dec 7, 2023

I'm not familiar with node-red (heard the name before, but that's it), but yes, this is how it works in general, and that's how I'm using it (with my own client).

@jaygrovr
Copy link
Author

jaygrovr commented Dec 7, 2023 via email

@yesyesuk
Copy link

yesyesuk commented Dec 7, 2023

it's port 23

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

No branches or pull requests

2 participants