Send command to ESPEasy via UDP.

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
Aria James
Normal user
Posts: 10
Joined: 08 Mar 2025, 20:47

Re: Send command to ESPEasy via UDP.

#51 Post by Aria James » 12 Mar 2025, 20:47

Yep, ESPEasy can receive UDP commands, so you should be able to send them from your PLC without any issues. Just make sure both devices are on the same network and UDP is enabled in ESPEasy. I’d recommend testing it first with a simple UDP sender tool before setting it up fully.

Smotek7
Normal user
Posts: 201
Joined: 01 Aug 2020, 16:18
Location: SK

Re: Send command to ESPEasy via UDP.

#52 Post by Smotek7 » 12 Mar 2025, 23:22

Aria James wrote: 12 Mar 2025, 20:47 Yep, ESPEasy can receive UDP commands, so you should be able to send them from your PLC without any issues. Just make sure both devices are on the same network and UDP is enabled in ESPEasy. I’d recommend testing it first with a simple UDP sender tool before setting it up fully.
:o :o :o
Have you read this thread?
That was solved half a year ago.
Now we are looking for a solution for uart to UDP.

User avatar
Ath
Normal user
Posts: 4269
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Send command to ESPEasy via UDP.

#53 Post by Ath » 23 Mar 2025, 23:30

I have done some improvements to P020 - Serial Server in PR #5287

This should at least improve the handling of TCP -> Serial pass through, and when receiving via serial it can now generate an event with the data converted to hex string, as usable by the SerialSendMix command.

Also added a serialsend_test command to test event processing more easily.

Here's an ESP32-C3 Collection A build for testing:
/Ton (PayPal.me)

Smotek7
Normal user
Posts: 201
Joined: 01 Aug 2020, 16:18
Location: SK

Re: Send command to ESPEasy via UDP.

#54 Post by Smotek7 » 24 Mar 2025, 09:30

Thanks for the info.
I will test and report back.

User avatar
Ath
Normal user
Posts: 4269
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Send command to ESPEasy via UDP.

#55 Post by Ath » 26 Mar 2025, 22:41

Smotek7 wrote: 24 Mar 2025, 09:30 Thanks for the info.
I will test and report back.
I have another feature for you to test: Pass-through from UDP to Serial :shock:
Available in this build: You can select to have TCP (Default), UDP or TCP & UDP handling. UDP will only pass all data received on the configured port (same port is used for both TCP and UDP) to the Serial port.

Please report your findings ;)
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 6 guests