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

UDP link is not valid #210

Open
aahondema opened this issue Mar 27, 2021 · 4 comments
Open

UDP link is not valid #210

aahondema opened this issue Mar 27, 2021 · 4 comments

Comments

@aahondema
Copy link

aahondema commented Mar 27, 2021

Hi,
I'm having troubles sending data to a syslog server. I use the syslog.h library for it. Data is send via UDP. Whenever I send data to this server I get the following messages:

21:21:04.818 -> > sendDataUdp: 3 15
21:21:04.818 -> > sendDataUdp: 192.168.68.104 514
21:21:04.865 -> [WiFiEsp] AT+CIPSEND=3,15,"192.168.68.104",514
21:21:04.958 -> link is not valid

As you can see I altered the debugging option from WIFIESP to 4 to get more info. The syslog server is on the mentioned IP number and on port 514. The WiFi connection is up and running, I also send message to a MQTT server and those are send without any problems. I have been trying for hours to get this working but with no result. I also have a nodemcu on which I use another WiFi library (WiFi8266) and there I can send syslog messages without a problem. I have no idea what causes the 'link is not valid' message.

Any ideas please??

Adrian

@JAndrassy
Copy link

you didn't call begin. some WiFi libraries including this one require to call begin on UDP even if you don't want to listen for UDP messages, but only send a message.

if you can update AT firmware to AT 1.7.4 (SDK 3), then you can use my WiFiEspAT library which is better

@aahondema
Copy link
Author

YES, that's it! Thank you very, very much Jan!

@JAndrassy
Copy link

YES, that's it! Thank you very, very much Jan!

it is Juraj Andrassy

@aahondema
Copy link
Author

Ah, I mis-interpreted your name, thought it was Jan Drassy :). Sorry fot that! Nevertheless, thanks again Juraj!
Adrian

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

No branches or pull requests

2 participants