Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two devices #3

Open
ArnoldGoat opened this issue Sep 2, 2022 · 0 comments
Open

Two devices #3

ArnoldGoat opened this issue Sep 2, 2022 · 0 comments

Comments

@ArnoldGoat
Copy link

ArnoldGoat commented Sep 2, 2022

Hi
I want to control an automatic gate as well as the garage door. I can do the control from a single ESP8266 with 2 relays, but how do I distinguish between the gate and the door? I was trying to avoid running 2 webservers on different ports in the ESP8266. I have 2 accessories with names 'door' and 'gate' with different listener ports, but this is a sending problem. I tried putting http://esp.local/door and http://esp.local/gate as the apiroute, but that didn't work. It used gate for both. The message received is /gate/status.

EDIT: ESP8266 Web Server can only handle 1 client at a time. But it let me instantiate 2 web servers on different ports which works.

Ken
config.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant