Repository navigation
feat(modpoll): report failures as answered, write report schema 5 and identify the product before an upload (POLL-06) - #150
Merged
Merged
Conversation
…chema 5 and identify the product before an upload (POLL-06)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
POLL-06 of the ModioHub plan: modpoll reads and reports, and does not diagnose or change the configuration.
--reportread lists each failed group as the device answered it (data table, zero-based addresses, exception code with its Modbus name, or no response), each point whose answer could not be decoded, and the groups not tried after a silent device.Continue?question is gone.--upload FILErefuses such a report, or a schema 3 or 4 report, without contacting ModioHub.constcarriesidentity(matchormismatch) fromidentity_constantsandidentity_result. A Workspace model's report names its product.POST /api/v1/products/matchidentifies the product of a model ModioHub does not know: an exact model is left to ModioHub, a report whose points all belong to one baseline gets that product, other matches or a model number search are offered interactively, and otherwise a prefilled catalog request is printed (no values or addresses).Needs the ModioHub side (top-maker/modiohub, VER-02) for the match endpoint and the schema 5 upload; both ship in the same release batch with modpoll-wot.
Checks:
make check,make test(256 passed),uv run pytest integration(7 passed).