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

Auto-starting measurement and IPv6 #18

Open
romain-jacob opened this issue Jul 30, 2024 · 1 comment
Open

Auto-starting measurement and IPv6 #18

romain-jacob opened this issue Jul 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@romain-jacob
Copy link
Contributor

During one test, one Pis used an IPv6 address to register on the server and that same PI didn't start measuring once connected to the power meter. Starting measurements from the GUI worked fine though...

Not sure if that's related, but there may be something missing in the IPv6 branch of the code. I'll take note of this and investigate later (or not...)

@romain-jacob romain-jacob added the bug Something isn't working label Jul 30, 2024
@UsualSpec
Copy link
Collaborator

UsualSpec commented Jul 30, 2024

I don’t think it’s related to IPv6. More likely it’s a concurrency bug or the pi could not start the measurement due to some error with the power meter. There is a timeout in startMeasurement()

std::pair<bool, std::string> AutopowerClient::startMeasurement() {

if (!hasWrittenOnceCv.wait_until(wol, std::chrono::system_clock::now() + std::chrono::seconds(waitTime), [this]() { return this->thisMeasurementHasWrittenOnce; })) {

you can check the syslog of the device in question and search if the respective error message came up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants