Page 1 of 1

Send Device Name on Demand

Posted: 31 Aug 2016, 14:06
by overdrive
Hello to everyone, i play around with the espeasy for the last days and it is really cool.

But i also have some questions. And here is my first one.

I know i can create some rules in the webif to operate some tasks.

Can anyone tell me if there is a command to send the device name per UDP to the ip adresse which have send the request?

For example:
Android Device send the message "givemeyourname" per UDP to the ESP,
the ESP have a Rule with

on givemeyourname do
sendToUDP "back to the ip which asked for the name", Name,
endon

So the Android Device will get back a UDP message from the ESP with the Device Name


Does anyone know if there are some commands a can use for this? To get the name from the device an send it per UDP.


I already had done this with a small Arduino Sketch. It was no big deal. But i dont know if something like this is already included in the ESPEasy.
I think the nodelist (multiple ESPEasy in the same network) is near this function, but it is not the way i want to use it.


regards

Re: Send Device Name on Demand

Posted: 31 Aug 2016, 14:44
by costo
Are you sure your android device is safe ?

If a Android app sents a "givemeyourname" request there may be a second app that spoofs this message and turns it into a "givemeyourmoney" request.
If your device is not safe you could loose all your money. :)

Sorry, just joking