ESP 'announcement' when coming onto network

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

ESP 'announcement' when coming onto network

#1 Post by JR01 » 13 Nov 2016, 16:42

Hi all,

Is there a way to determine if a new ESP comes on the network, that I can get which new ESP is now on the network? I want to save to DB (using nodeRED) the ones announcing itself, maybe with a workflow to first approve once announcement have been made, and every time ESP's signs onto the network, (say after a power loss) check if I know about it, and create necessary actions as result (on nodeRed, with MQTT).

Maybe this is a change request, if no other way this can be done?

Maybe then, the announcements goes to 'sensors/espeasy/announceESP/#' MQTT channel, and it delivers a json formatted string with the following fields:
1) name; 2) unit number; 3) IP address; 4) build; 5) Mac addresses; ESP chi id.
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP 'announcement' when coming onto network

#2 Post by BertB » 13 Nov 2016, 16:59

Per haps you can use a rules event?
Like this. I have no experience at all with NodeRed, so may be I write nonsense here.

On System#Boot do //When the ESP boots, do
Publish <topic>,<value>
endon

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Re: ESP 'announcement' when coming onto network

#3 Post by JR01 » 13 Nov 2016, 17:01

Did not think of that, well done !!!!
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Re: ESP 'announcement' when coming onto network

#4 Post by JR01 » 13 Nov 2016, 17:04

But I still think this could be a good function, with the rules, will have to add it in every time when flashing a new ESP, by hand...

and I still do not have the 5 fields using a rule:
1) name; 2) unit number; 3) IP address; 4) build; 5) Mac addresses; ESP chip id.
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP 'announcement' when coming onto network

#5 Post by BertB » 13 Nov 2016, 17:06

BertB wrote:Per haps you can use a rules event?
Like this. I have no experience at all with NodeRed, so may be I write nonsense here.

On System#Boot do //When the ESP boots, do
Publish <topic>,<value>
endon

Post Reply

Who is online

Users browsing this forum: No registered users and 90 guests