Repository navigation
examples/sila: a Nano served as a SiLA 2 device, one field of each kind - #25
Merged
Merged
Conversation
Eight roles (switch, bounded level, discrete set, action, labelled select, analog in volts, text, command in presented units) from a Nano or from a host build with simulated endpoints, served as SiLA 2 features by gateway.py, which knows only the kinds in its table and refuses the rest by name. The six kinds that are not in role/kinds.h are in src/kinds.h. The feature definitions are generated at start; the server UUID is derived from the originator and the machine hash. Moved from R&D/OneMachine/silaCompose @ f158e21 (minimal/). The firmware image built here is byte-identical to the one built there (avr-gcc 7.3.0: 8910 B flash, 345 B RAM, sha256 97f1f9ea31a4c1a35f3a0ad1c904d5ecfdeaac60e0aa160fa16eb2de0885614e). Needs describe-values (value/scale/unit lines, '%' in a unit symbol). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
A new example: one machine of eight roles, served as SiLA 2 features by a Python gateway, from a Nano or from a host build with simulated endpoints.
Verified on a Nano (ATmega328P, avr-gcc 7.3.0): 8910 B flash / 345 B RAM; the SiLA checks (constraints, subscriptions, refusals, rounding edge cases, concurrency) pass with a separate client implementation (`unitelabs-sila`) and the XSD of `sila_base`; the host build and README steps work from a clean clone.
Two commits on top of `main` (the `value`/`scale`/`unit` lines and `%` landed in #24).
🤖 Generated with Claude Code