martin-ger / esp_wifi_repeater

A full functional WiFi Repeater (correctly: a WiFi NAT Router)
MIT License
4.72k stars 897 forks source link

Avoid Regular clients in Automesh on ESP APs due to performance issues #448

Open Basti-Fantasti opened 3 years ago

Basti-Fantasti commented 3 years ago

Hi,

when setup in Automesh mode the ESPs AP has the same SSID as the uplink Router. Is there a way to prevent devices from connecting to the ESPs AP due to the lower performance?

I want to use it only for sensors not phone or notebooks

Thanks in advance

martin-ger commented 3 years ago

If you have some control on the placement of the nodes, you might consider to configure the mesh-level 1 ESP nodes manually (actually they will become mesh level 0 nodes than) to a different SSID than the main AP. Other (outer) Automesh nodes then should use this SSID. Than you have a different SSID for the main AP and the ESPs.

Basti-Fantasti commented 3 years ago

Thanks for your quick reply.

Yes I think I can handle the setup of the sensors to have a setup like this (if this is what you suggested):

This could be a good solution to have a separate (lower performance) mesh network for sensors and actors around the house.

A point is, that I cannot tell, to which AP the sensors connect to, which forces me to use DHCP on the sensors to acquire an IP address due to the different IP subnets. I thought about settings my battery driven sensors to static IPs to reduce the power usage and up time between deep-sleeps in the hand shake and address assigning process.

In this scenario I would only need to have a static route for all potential IP ranges 10.24.0.0/16 to the static IP of the 1st ESP

Does this make sense so far 😄

Best regards Bastian

martin-ger commented 3 years ago

I still don't get, where you need the static routes. All clients can reach any upstream node. If eg. an MQTT server ist located in the "main" net at192.168.0.x it can be accessed by all nodes in the Automesh.

Basti-Fantasti commented 3 years ago

but is it also possible to use actors (switches) in the meshed network? So not only sending data to my HA Server in the 192.168.0.x is possible but also from server to the actors without the route?

martin-ger commented 3 years ago

No, that is not - relaying via a central MQTT might be a solution...

Basti-Fantasti commented 3 years ago

Ok, so I need to check if this is possible. I have ESPHome or Tasmota running on my switches. For Tasmota this should be ok. They are connected to my Mosquitto on my HA installation - but I need to check for the ESPHome devices.