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

Document multiple agent/component models, consider helpers #122

Open
jspaith opened this issue May 18, 2021 · 0 comments
Open

Document multiple agent/component models, consider helpers #122

jspaith opened this issue May 18, 2021 · 0 comments
Labels
team-issued Issues submitted by the C SDK team

Comments

@jspaith
Copy link
Contributor

jspaith commented May 18, 2021

The Middleware runs on a single task, by design. It's not our business to spin tasks on behalf of the device application, since we want to help OEMs save every last byte. Because of this model we also are not thread safe.

That said we've received a few requests along the lines of "Suppose I want a Thermostat Agent and a Device Update Agent on the same underlying FreeRTOS az_iot_hub handle?" We need a definitive answer here, which will be some mix of clear documentation and samples at minimum. PnP and its componentization model naturally lends a shape to (de)multiplexing.

We may consider some level of a convenience API to make this easier. (We're NOT looking to one-for-one re-create the convenience layer of Azure IoT C SDK at present in the middleware, however, due to the extra complexity this would add. But if there's something that would be optional only for people wanting this and that could be supported by SDK and not overly complex, we'll consider.)

@jspaith jspaith changed the title Document multiple agent/component models Document multiple agent/component models, consider helpers May 18, 2021
@danewalton danewalton added the team-issued Issues submitted by the C SDK team label Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-issued Issues submitted by the C SDK team
Projects
None yet
Development

No branches or pull requests

2 participants