android-udpsender icon indicating copy to clipboard operation
android-udpsender copied to clipboard

Error after sending 1 command?

Open triforcegathering opened this issue 9 years ago • 4 comments

I keep getting an error when I try to use the tasker plugin. The standalone UDP app works fine when I try to turn off my Milight bulbs (text command 0x420x000x55) but whenever I use UDP sender in tasker (intent or tasker plugin) for just a simple off or on command (single action task), it works the fist time. However, every time after that, it gives an error:

java.net.SocketException: sendto failed: EPERM (Operation not permitted)

It usually (but not always) works if I try again in say 10 minutes.

Device: Samsung Galaxy S6 on Android 6.0.1

I think these guys found a fix to a similar issue: https://github.com/EsotericSoftware/kryonet/issues/106

triforcegathering avatar Jul 19 '16 04:07 triforcegathering

I have the same problem. Using Tasker to send a short UDP message when phone rings. It fails about 50% of the time. Manual testing always works. Just replaced UDP Sender with Android.intent.action.SENDTO, and get the same exception. So this is a deeper problem. Device: LG G4 on ANdroid 6.0

OddPaulsen avatar Jan 15 '17 08:01 OddPaulsen

This is an issue on my Google Pixel. On first reboot I get this error however upon launching UDP sender manually it seems to work from tasker consequently and until the next reboot. I don't think this app is under development anymore :(

Morphy99 avatar Feb 04 '17 12:02 Morphy99

For those getting this error make sure that both UDPSender and Tasker are excluded from any form of battery management/power saving/optimisation.

An example of how to do this for Android Marshmallow/Nougat is here: http://fieldguide.gizmodo.com/how-to-exclude-certain-apps-from-androids-battery-savin-1742064352

hastarin avatar Feb 15 '17 01:02 hastarin

Excellent advice. UDPsender was on battery optimisation, after excluding it has been working fine. What a relief! Thank you very much!

OddPaulsen avatar Feb 16 '17 21:02 OddPaulsen