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

Add some events through websocket & mqtt #448

Merged
merged 5 commits into from
Oct 23, 2022
Merged

Conversation

KipK
Copy link
Collaborator

@KipK KipK commented Oct 16, 2022

discussed here #401 (comment)

Add missing events over web socket / mqtt
Send full status data over web socket when new client connect
fix Pilot event bug

@KipK KipK mentioned this pull request Oct 16, 2022
@KipK
Copy link
Collaborator Author

KipK commented Oct 16, 2022

Do not commit yet. I have to test this first

@KipK
Copy link
Collaborator Author

KipK commented Oct 16, 2022

ok all good to me.

It push over websocket / mqtt amp/voltage when charging each sec like for the lcd
push charge session data at state change ( + amp to get a fast 0A when disabling )

@KipK
Copy link
Collaborator Author

KipK commented Oct 16, 2022

Also added a fix for a little bug with Pilot I have spotted . It was hidden in the middle of all the /status poll traffic

@KipK KipK force-pushed the events branch 2 times, most recently from f5b5b82 to 774dbbb Compare October 16, 2022 22:03
Event Amp & Voltage sent each sec while charging
event sessions each 2 sec while charging
refactored handleStatus function

# Conflicts:
#	src/web_server.cpp
@KipK
Copy link
Collaborator Author

KipK commented Oct 16, 2022

Damn I've messed the rebase again.... refixing....

@KipK
Copy link
Collaborator Author

KipK commented Oct 18, 2022

When this will be merge, we will be able to remove the /status polling on actual UI too.

@KipK
Copy link
Collaborator Author

KipK commented Oct 20, 2022

it's ok. But I can resubmit a proper rebased pull request if you want.
Also I wonder if I can add the whole API over websocket. This would makes sense.

@KipK KipK closed this Oct 20, 2022
@KipK KipK reopened this Oct 20, 2022
Copy link
Collaborator

@jeremypoulter jeremypoulter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me

@jeremypoulter jeremypoulter merged commit a50219a into OpenEVSE:master Oct 23, 2022
@KipK KipK deleted the events branch October 24, 2022 19:49
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.

2 participants