Send Device Name on Demand

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
overdrive
New user
Posts: 8
Joined: 31 Aug 2016, 13:35

Send Device Name on Demand

#1 Post by overdrive » 31 Aug 2016, 14:06

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

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: Send Device Name on Demand

#2 Post by costo » 31 Aug 2016, 14:44

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

Post Reply

Who is online

Users browsing this forum: No registered users and 60 guests