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

Operational models for Azure IoT Hub #382

Merged
merged 15 commits into from
Dec 27, 2021

Conversation

mburumaxwell
Copy link
Contributor

@mburumaxwell mburumaxwell commented Dec 27, 2021

This PR adds models that help work with Azure IoT Hub from an operational perspective. Alongside telemetry, other events are received. These include twinChangeEvents, lifecycleEvents, and deviceConnectionStateEvents. These are useful in production.

This PR introduces models that abstract much of the common logic in getting these out of received events and reacting accordingly. This is enabled through a custom type IotHubEvent<TDeviceTelemetry, TDeviceTwinChange, TDeviceLifecycle> and the shorter IotHubEvent<TDeviceTelemetry> together with a custom serializer.

The AzureIotHub samples has been updated to show the recommended usage.

@mburumaxwell mburumaxwell merged commit fa4e25e into main Dec 27, 2021
@mburumaxwell mburumaxwell deleted the feature/azure-iothub-operational branch December 27, 2021 17:21
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.

1 participant