-
Notifications
You must be signed in to change notification settings - Fork 125
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
Make All ProtocolDriver interface API implementations required #1374
Comments
weichou1229
added a commit
to weichou1229/device-sdk-go
that referenced
this issue
Mar 16, 2023
Move Discover(), ValidateDevice() to the ProtocolDriver interface to that they are required like the existing interfaces. This forces at a minimum an empty implementation which gives exposure to the developer that they exist. Close edgexfoundry#1374 Signed-off-by: bruce <weichou1229@gmail.com>
5 tasks
weichou1229
added a commit
to weichou1229/device-sdk-go
that referenced
this issue
Mar 16, 2023
BREAKING CHANGE: Move Discover(), ValidateDevice() to the ProtocolDriver interface to that they are required like the existing interfaces. This forces at a minimum an empty implementation which gives exposure to the developer that they exist. Close edgexfoundry#1374 Signed-off-by: bruce <weichou1229@gmail.com>
weichou1229
added a commit
to weichou1229/device-sdk-go
that referenced
this issue
Mar 17, 2023
Move Discover(), ValidateDevice() to the ProtocolDriver interface to that they are required like the existing interfaces. This forces at a minimum an empty implementation which gives exposure to the developer that they exist. Close edgexfoundry#1374 Signed-off-by: bruce <weichou1229@gmail.com>
weichou1229
added a commit
to weichou1229/device-sdk-go
that referenced
this issue
Mar 17, 2023
Move Discover(), ValidateDevice() to the ProtocolDriver interface to that they are required like the existing interfaces. This forces at a minimum an empty implementation which gives exposure to the developer that they exist. Close edgexfoundry#1374 Signed-off-by: bruce <weichou1229@gmail.com>
weichou1229
added a commit
to weichou1229/device-sdk-go
that referenced
this issue
Mar 20, 2023
Move Discover(), ValidateDevice() to the ProtocolDriver interface to that they are required like the existing interfaces. This forces at a minimum an empty implementation which gives exposure to the developer that they exist. Close edgexfoundry#1374 Signed-off-by: bruce <weichou1229@gmail.com>
weichou1229
added a commit
to weichou1229/device-sdk-go
that referenced
this issue
Mar 20, 2023
Move Discover(), ValidateDevice() to the ProtocolDriver interface to that they are required like the existing interfaces. This forces at a minimum an empty implementation which gives exposure to the developer that they exist. Close edgexfoundry#1374 Signed-off-by: bruce <weichou1229@gmail.com>
weichou1229
added a commit
to weichou1229/device-sdk-go
that referenced
this issue
Mar 21, 2023
Use interfaces.ProtocolDriver instead of any as parameter. Close edgexfoundry#1374 Signed-off-by: bruce <weichou1229@gmail.com>
weichou1229
added a commit
to weichou1229/device-sdk-go
that referenced
this issue
Mar 22, 2023
Use interfaces.ProtocolDriver instead of any as parameter. Close edgexfoundry#1374 Signed-off-by: bruce <weichou1229@gmail.com>
cloudxxx8
pushed a commit
that referenced
this issue
Apr 7, 2023
…#1391) * feat!: Make All ProtocolDriver interface API implementations required Move Discover(), ValidateDevice() to the ProtocolDriver interface to that they are required like the existing interfaces. This forces at a minimum an empty implementation which gives exposure to the developer that they exist. Close #1374 Signed-off-by: bruce <weichou1229@gmail.com> * feat!: Refactor Bootstrap and NewDeviceService parameter Use interfaces.ProtocolDriver instead of any as parameter. Close #1374 Signed-off-by: bruce <weichou1229@gmail.com> --------- Signed-off-by: bruce <weichou1229@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🚀 Feature Request
Relevant Package [REQUIRED]
This feature request is for ProtocolDriver interface
Description [REQUIRED]
The following interfaces are optional for protocol driver to implement since they were added when breaking changes not allowed.
Describe the solution you'd like
It was decide in Device WG on 3/13/2023 to move the above interfaces to the ProtocolDriver interface to that they are required like the existing interfaces. This forces at a minimum an empty implementation which gives exposure to the developer that they exist.
Code in the SDK that checks that these are implemented can be removed.
Describe alternatives you've considered
Leave them as optional.
The text was updated successfully, but these errors were encountered: