- Sat Feb 27, 2016 12:19 am
#41982
With the correct code you could setup registers to perform a connection to a specific device or have them connect and preform the same task ...
let swarmreg = ""
if swarmreg = esp1 then [connect esp1]
if swarmreg = ALL
[conncect esp1]
WiFioffconnect ssid password
// timer here
// data to send here using msgbranch on other device it should receive the data.
Yes this is very possible you could have ALL reference a function on each device so that it will connect and issue a command to the next device in line automatically. You could include this in your msgbranch.
So technically you could have the nodes communicate from the time you tell it to unlock your door all the way to opening your electronic blinds to automatically setting your lights to the right dimmer setting based off of the current time to closing your garage door and even starting your slow cooker. Really anything is possible with this if you got super involved you might even be witty enough to have a robot go grab you a beer out of the fridge and bring it to you these things could all be done in succession.
But it may in many cases just be easier and more useful to have a server setup and a local wifi for all of the nodemcu's to connect to possibly a cheap device like an orange pi raspberrypi zero or if you prefer the windows flavor a cenovo android/windows10 mini pc which would issue the commands to each unit depending on the program you write to handle delivery heck it could even be done on a remote sever from a web page.
So much is possible with this device loaded with the basic firmware these little things we do here and there are building blocks towards what you talk about.
As for swarm study you could get data like the status of a pin or other information also have interrupts trigger events such as sending data to a server or thingspeak etc. I would imagine with enough imagination you could do some radical stuff with this device both locally and remotely providing there is any type of internet connection.
Servo based solar powered weed eater style lawn mower with a home station and inductive charging anyone?