Forum Discussion
TNGW1500SE
Nov 20, 2017Explorer
GordonThree wrote:TNGW1500SE wrote:
Thanks, I been beating my head trying to think of how I can program these things to work on more than one network. Then I came up with the idea of naming them all the same.
Overlapping SSID will work. Another way to do it is with the WiFiMulti library, it lets you save several access point SSID/Password pairs into your program and tries each one till it finds a match. Yet another option is the WiFiManager library, if ESP can't connect to the last known access point, it will start its own access point for you to connect to, and then you can change whatever settings you need.
Once you've outgrown NodeMCU and the Lua scripts, move over to programming in C++, either using the Arduino framework or native Espressif SDK. It opens SO MANY DOORS.
Thumbs up for adding Alexa to the mix. It's nice being able to do "Alexa turn off the lights" and the system turns off indoor and outdoor lights just like that. "Alexa set bathroom fan to 50%" is another of my favorites.
My ESP nodes are all managed by an api server that sends them configuration information, like what their job is, their mqtt settings, server addresses, all stored in a database. If I need to swap out a node, I just update the database and the new node becomes the replacement.
Of course, the hardware part is fun too. Here's a few of my creations:
Dual channel 10amp DC solid state switch, for 12v items in the RV
Four channel PWM dimmer, intended to control my awning light which has the rgb + white LED chips.
Sorry to ramble... glad to see someone else hacking with the ESP
So,,,, I see now,, I'm not the only guy that wants to sit on the couch and have Alexa do everything for me! Yesterday I started playing with a ESP32. There's a learning curve from the NODEMCU involved there too! I got it working after downloading GIT and Python. I flashed it with the hall effect example. It was working until I got the magnet a little to close. Then SNAP! I touched the magnet to the board. OH Well! That's how you learn. I look into the multiple ssid's but not sure I'll need to master that code if I name every router the same. I am using Arduino to write and fash with.
I've got a set of RGB led's behind my TV that flash like a police car when I miss a call or get a text. You say "Alexa, turn off missed call lights" to shut them off or they go off automatically when I make any call. I also installed a RGB LED strip under my kitchen counter that Alexa controls the color and brightness with a NODEMCU & three NPN's. I used "analog.Write" to pick the colors I wanted to use and made them fade on. I have to admit I started with code from GITHUB but there's not much of it I haven't re-written. The whole thing started with Alexa then I added 3 WEMO's I got on Craigslist, then IFTTT and now NODES. I'm going to school at Youtube.com LOL! Might play with "LoRa" next but I have a Pi ordered too!
I'm going to make a LED dog harness for my dog that lights up and beeps. I'll control it from my phone with Bluetooth or use a NODE as a server and by next summer my motorcycle will put on a really good light show too.
About RV Must Haves
Have a product you cannot live without? Share it with the community!8,800 PostsLatest Activity: May 26, 2025