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

peripheral.wrap() from a remote computer uses old type+id reference instead of using getConnectedName() #1

Closed
TheMindVirus opened this issue Apr 9, 2022 · 1 comment
Assignees

Comments

@TheMindVirus
Copy link
Owner

TheMindVirus commented Apr 9, 2022

The id change worked but the name is still picked up as the type from remote computers.
This is somewhat desirable as it doesn't break programs that use it and lets you change the id.
However, it would be logical to refer to the device by both "<name_id>" and "<type_id>".

id changes only apply after a reboot of the remote computer and newly placed modems default to "null" in the HashMap
which is a form of incoherent caching that has remained consistently maintained without change for several years.
Potential solutions are to leave it as it is with its current behaviour or make a new alpha version with propagated changes.

@TheMindVirus
Copy link
Owner Author

TheMindVirus commented Apr 9, 2022

The name of the attached peripheral can be set to the type by default here instead of null:

Updating the name over the network requires the latest version of the mod and a restart of all devices on the network.
You may also need to disconnect and reconnect modems to get their name to change.

@TheMindVirus TheMindVirus self-assigned this Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant