joelmnz wrote: ↑30 Oct 2018, 04:50
Goal / Requirements:
- to have 2 devices connected to each other using an AP on one of the devices (AP host + client, they will NOT be connected to WiFi via a router, direct p2p is needed, needs to be stand alone)
- Device One - (probably the host) will be connected to a voltage sensor (Analog pin A0)
- Device Two - will be connected to a relay (most likely a SonOff or something).
- When Device One reads the voltage and it gets over a defined value it will turn ON the realy on the 2nd device
- When the voltage gets below a defined value it will turn OFF the relay on the 2nd device
I have tried a few firmware & I really like ESP Easy, can anyone suggest how I might do this using ESP Easy running on both devices (preferably) or I could code one of the devices (probably the server) to be the AP with voltage sensor and submit commands to the Sonoff (second device).
Any feedback is much appreciated.
It can be done with ESPEasy.
You can select one ESP with ESPEasy, and do not configure it's wifi, than it is remaining permanently in soft-AP mode, another ESP can join this soft-AP, and each one can controll the other one, if "ESPEasy P2P Networking" configured on them, and each of them numbered differently. (Unit1,Unit2...)
Look after at:
SendTo <unit nr>, <command>
I've made a wireless bell extension in a very similar way with two NodeMCU, two relay and a 12V sounder.