You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the methods in ServiceInterface return structures or pointer to structures which encapsulate the corresponding data. This is because the implementation just passes the various interfaces of ship-go to the service interface and the corresponding ship-go implementations are designed to be thread-safe. This current implementation violates the idea of having an interface specifically designed to separate the user level from the technical (EEBus) level. Furthermore, the encapsulation prohibits the data from being convertible into JSON or any other format in a generic manner.
I'd like to propose a data struct called ServiceItem with the following items:
typeServiceItemstruct {
Namestring// shipapi.MdnsEntrySkistring// shipapi.MdnsEntryShipIdPerMdnsstring// field Identifier of shipapi.MdnsEntryBrandstring// shipapi.MdnsEntryTypestring// shipapi.MdnsEntryModelstring// shipapi.MdnsEntrySerialstring// shipapi.MdnsEntryCategories []shipapi.DeviceCategoryType// shipapi.MdnsEntryTrustedbool// shipapi.ServiceDetailsConnectionState shipapi.ConnectionStateConnectionErrorMessagestringRemoteDevicebool// because the local device will also be listed
}
ServiceItem should be available via an API method and there should also be a corresponding callback in ServiceReaderInterface.
The text was updated successfully, but these errors were encountered:
As discussed: Another aspect is also how to register a remote device and have the stack verify that the SHIP ID is properly submitted in the SHIP handshake, instead of having the app to do it.
Some of the methods in ServiceInterface return structures or pointer to structures which encapsulate the corresponding data. This is because the implementation just passes the various interfaces of ship-go to the service interface and the corresponding ship-go implementations are designed to be thread-safe. This current implementation violates the idea of having an interface specifically designed to separate the user level from the technical (EEBus) level. Furthermore, the encapsulation prohibits the data from being convertible into JSON or any other format in a generic manner.
I'd like to propose a data struct called
ServiceItem
with the following items:ServiceItem
should be available via an API method and there should also be a corresponding callback inServiceReaderInterface
.The text was updated successfully, but these errors were encountered: