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

MessageHandler interface enhancements #30

Merged

Conversation

stoyan-zoubev
Copy link
Contributor

[#18] MessageHandler interface enhancements

  • Separate interfaces for c2d and d2c messages - CommandHandler and TelemetryHandler
  • Removed AzureSettings parameter from handler Init method, static parameters should be passed to handler constructors.
  • MessageHandler.Init method receives cloud connection info only (this is data that may not be known at the time of handler creation, e.g. obtained via Azure DPS) - Device ID, Hostname, etc.
  • Simplified test methods

Signed-off-by: Stoyan Zoubev [email protected]

- Separate interfaces for c2d and d2c messages - CommandHandler and TelemetryHandler
- Removed AzureSettings parameter from handler Init method, static parameters should be passed to handler constructors.
- MessageHandler.Init method receives cloud connection info only (this is data that may not be known at the time of handler creation) - Device ID, Hostname, etc.
- Simplified test methods

Signed-off-by: Stoyan Zoubev <[email protected]>
@e-grigorov e-grigorov linked an issue Oct 14, 2022 that may be closed by this pull request
Fixed PR review comments.
- CloudConnectionInfo is not a pointer inside AzureConnectionSettings
- fixed typo

Signed-off-by: Stoyan Zoubev <[email protected]>
Fixed PR review comments.
- CloudConnectionInfo renamed to RemoteConnectionInfo
- SharedAccessKey struct removed, not really needed (SharedAccessKeyName is not applicable for Azure IoT Hub device connection string.
- SharedAccessKey is now just a []byte field.

Signed-off-by: Stoyan Zoubev <[email protected]>
@stoyan-zoubev stoyan-zoubev force-pushed the messagehandler-interface branch from df9e974 to 43605c0 Compare October 14, 2022 13:01
@e-grigorov e-grigorov merged commit 1e7fa09 into eclipse-kanto:main Oct 14, 2022
@stoyan-zoubev stoyan-zoubev deleted the messagehandler-interface branch October 14, 2022 13:53
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

Successfully merging this pull request may close these issues.

MessageHandler interface enhancements
3 participants