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

Update register remote service API #46

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

DerAndereAndi
Copy link
Member

Change RegisterRemoteSKI api call with a 2nd argument to provide the SHIP-ID if known. If provided (as a non empty string), upon SHIP handshake it will check the reported SHIP-ID from the remote service, and if it differs, will close the connection. The SHIP-ID is also made available via mDNS, and therefor should be known at all times.

The implementation of ServiceShipIDUpdate of HubReaderInterface is called to report the SHIP-ID, if it wasn’t known yet.

Change `RegisterRemoteSKI` api call with a 2nd argument to provide the SHIP-ID if known. If provided (as a non empty string), upon SHIP handshake it will check the reported SHIP-ID from the remote service, and if it differs, will close the connection. The SHIP-ID is also made available via mDNS, and therefor should be known at all times.

The implementation of `ServiceShipIDUpdate` of `HubReaderInterface` is called to report the SHIP-ID, if it wasn’t known yet.
@DerAndereAndi DerAndereAndi added enhancement New feature or request HUB Connection management related topics labels Dec 24, 2024
@coveralls
Copy link

Coverage Status

coverage: 93.345% (+0.04%) from 93.304%
when pulling 45edf34 on feature/register-improvements
into d388b85 on dev.

DerAndereAndi added a commit to enbility/eebus-go that referenced this pull request Dec 24, 2024
Change `RegisterRemoteSKI` api call with a 2nd argument to provide the SHIP-ID if known. If provided (as a non empty string), upon SHIP handshake it will check the reported SHIP-ID from the remote service, and if it differs, will close the connection. The SHIP-ID is also made available via mDNS, and therefor should be known at all times.

Requires enbility/ship-go#46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request HUB Connection management related topics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants