0

I am currently working on a project for my home where several ESP8266 (each with a relay) control lights. I have developed an android for this where I find the ESP8266s via mdns but the problem is that sometimes one or two won't be found ever (depends on the position where I am trying it). So my idea was to make them talk to each other so everyone knows like an list of ip addresses from the others. This would give me the possibility to find every ESP as soon as i have found one.

asked Apr 16, 2020 at 19:50

2 Answers 2

2

I guess you are asking if it is feasible: if this is the case, I would say yes, without too many troubles. Each ESP can launch MDNS discovery, so they can discover each other.

answered Apr 16, 2020 at 20:20
0

Waht you may be looking for is a mesh network, you can use the standerd lib ESP8266WiFiMesh. Mesh reduces the loading of smart devices on the router by forming a mesh between the smart devices.There are unluckely no examples ready to use but you can look at the provided example and modify it to your needs,

You find the lib in your core dir

C:\Users\Your_Username\AppData\Local\Arduino15\packages\esp8266\hardware\esp82662円.6.3\libraries\ESP8266WiFiMesh

but be aware there are a lot of open issues and PRs (which means lot of trouble in a stable production)
EDIT
There is also the Arduino library painlessMesh. Its well documented and has lot of examples and can be combined with MQTT.
For MQTT there is one condition where you might consider this option, if you have deep sleeping nodes on battery (than mesh might be contra productive)

answered Apr 16, 2020 at 20:50
1

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.