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

Make MQTT work with Ethernet #345

Merged
merged 1 commit into from
Jun 19, 2022
Merged

Conversation

bensuffolk
Copy link
Contributor

Called the new functions network_connected() and network_disconnected() instead of directly calling networkStart() and networkStop().

This accounts for the change to networkEvery5Seconds() which no longer directly checks for the ethernet connection status.

So now MQTT will connect as it should

@nagyrobi
Copy link
Collaborator

Don't forget to test if the online/offline scripts still work in both wifi and Ethetnet mode...

@bensuffolk
Copy link
Contributor Author

Yes online/offline scripts work in Ethernet. This pull request make no changes to anything other than the ethernet code, so WiFi will have the same functionality it had before.

@fvanroie fvanroie merged commit 43651ca into HASwitchPlate:master Jun 19, 2022
@fvanroie
Copy link
Collaborator

Thanks Ben!

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

Successfully merging this pull request may close these issues.

3 participants