Repository navigation
feat(slave): accept unit ids up to 255; release 3.6.0 - #21
Merged
Merged
Conversation
The slave refused unit 255 ("not a unit or range in 1..247"), the unit
most Modbus TCP devices answer as. The limit lived only in the frontend:
parseUnits, parseProject and the simulation editor. The backend keeps
units as u8 and rmodbus 0.13 broadcasts only on unit 0, so 255 is served
like any other unit; measured with pymodbus 3.16.2 as master over TCP,
UDP and RTU over TCP (docs/superpowers/verification/2026-11-11-slave-
unit-255.md). On serial lines 248..255 stay reserved by the spec; the
tool allows them, as the master side already does (0..255).
Tests changed with the behaviour: "248" is now a valid unit, so the
rejection cases move to 256 and 250-256. Cases that only failed through
the empty-list error ("5-2", "a") gain a valid unit beside them, and the
project check rejects a mixed [1, 256], so the range checks themselves
are exercised (Stryker on units.ts: 93.1%).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Rdii2xv4WTmCWzFBdAPnv
Version 3.6.0 in package.json, Cargo.toml and tauri.conf.json (and their lock files), and the dated changelog section that becomes the release text. A minor release: the slave accepts unit ids up to 255. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii2xv4WTmCWzFBdAPnv
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
chetto1983
pushed a commit
that referenced
this pull request
Nov 11, 2026
The scheme of chetto1983/Twinova and chetto1983/Aura ci.yml, ported on the user's request: - paths "**", "!**.md", "!docs/**" on push and pull_request, shared with a YAML anchor (supported by Actions: workflow syntax, "YAML anchors and aliases"). Nothing CI runs reads a Markdown file or docs/ (grep, 2026-11-11: Prettier ignores both; docs/screenshots feeds only the site, pages.yml), so a change made only of them starts no run. - push only on master: a working branch is checked by its pull_request run, so one SHA no longer runs twice (PR #21 ran CI for its push and for its pull request). - bundle only on push: the MSI was the longest job of master run 42981578708 (4 min 52 s), and on a pull request the E2E already builds and drives the app on both platforms. CLAUDE.md's push discipline now says a working branch needs an open PR to be checked, as Twinova's does. Not measured on GitHub yet: the pull_request run of this change is the first evaluation of the new triggers. If a check were ever made required by branch protection, a prose-only PR would wait on it (checks of a workflow skipped by paths stay pending, per the docs). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii2xv4WTmCWzFBdAPnv
8 of 13 tasks
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.
What & why
The slave refused unit 255 ("not a unit or range in 1..247"), the unit most Modbus TCP devices answer as. The limit was only in the frontend (
parseUnits,parseProject, the simulation editor). The backend keeps units asu8, and rmodbus 0.13 broadcasts only on unit 0, so 255 is served like any other unit. The backend code is unchanged; the master↔slave test now also runs on unit 255.Includes the
chore(release): 3.6.0commit (version inpackage.json,Cargo.toml,tauri.conf.jsonand their lock files, plus the dated changelog section). After the merge, tagv3.6.0on the merge commit.Verification:
docs/superpowers/verification/2026-11-11-slave-unit-255.md.Type
Checklist
npm run check && npm run lint && npm run format:check && npm testpass (146 tests)cargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo testpass (61 tests)cargo llvm-covnot run locally; CI runs it.npm run file-size)npm run e2e): the full suite was not run locally; CI runs it. Measured separately: pymodbus 3.16.2 as master against the realSlaveServerwith unit 255 on TCP, UDP and RTU over TCP. Reads and writes work, and the unconfigured unit 254 gets no answer.CHANGELOG.mdupdatedNotes for reviewers
units.ts: 93.1%.Generated by Claude Code