You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'am using the libraty on a Arduino Mega with an Ethernet Shield. When I use the syslog.logf function the Arduino stops working. Any idea what I' am doing wrong?
Likely caused because the library doesn't open the Ethernet socket first before writing log strings to it. This should be done with this->_client->begin(someRandomLocalPort) or in your sketch setup(), can also be done with udpClient.begin(someRandomLocalPort).
At first, while trying to port this library, I spent a while searching to see if this was already done automatically somewhere down the stack, but I found nothing. Then I found this issue which confirms the present Ethernet example won't work, probably wasn't a big deal before since most people use ESP8266/32 WiFi, whose UDP library doesn't seem to directly operate on sockets the same way as the W5x00 library, instead dynamically creating a new UDP context as needed for each datagram.
I'am using the libraty on a Arduino Mega with an Ethernet Shield. When I use the syslog.logf function the Arduino stops working. Any idea what I' am doing wrong?
Sketch:
RemotePowerSwitch.txt
Thanks,
Karl
The text was updated successfully, but these errors were encountered: