Skip to content

Move the scan logic to HandleReadCommands instead of Initialize #30

@cloudxxx8

Description

@cloudxxx8

Currently, the scan logic of GPS Device Service is located in Initialize func, it caused this Device Service can only serve one GPS Device.
By moving to HandleReadCommands func, it can read ProtocolProperties as the suggestion in #29. The disadvantage is that it can only scan at runtime. In the next release, this logic could move to the new AddDevice callback stated in edgexfoundry/device-sdk-go#276
This issue is just a suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions