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

Support for Azure IoT Hub - Quarkus Dev Service #56

Open
JoaoBrandao opened this issue Jan 7, 2023 · 1 comment
Open

Support for Azure IoT Hub - Quarkus Dev Service #56

JoaoBrandao opened this issue Jan 7, 2023 · 1 comment
Labels
feature New feature or request

Comments

@JoaoBrandao
Copy link

As Developer,
Would be great to be able to have a Dev Service in Quarkus that allows me to use Azure IoT Hub without requiring any internet connection for my local environment.

As you know, Azure IoT Hub supports two types of connection:

  • iot-service-client ( register and send messages/events from cloud to device)
  • iot-device-client ( receive and send messages/events from device to Cloud)

iothub-example

I would like to be able to make two operations:

  • Register Devices
  • Send messages/events to a registered device that was created using the operation above or it was a pre-populated device via application.properties

When sending messages to a pre-populated device it would be great to define a few properties:

quarkus.azure.iothub.device."quarkus-device1".status=enable/disable
quarkus.azure.iothub.device."quarkus-device1".message.acknowledgment=true/false
quarkus.azure.iothub.device."quarkus-device1".message.acknowledgment.delay=5000 (ms)

Documentation:
https://learn.microsoft.com/en-us/java/api/overview/azure/iot?view=azure-java-stable

@ppalaga
Copy link
Contributor

ppalaga commented Jan 10, 2023

First, this would require Azure IoT clients to be supported on Quarkus through dedicated extensions.

Second, Quarkus dev services typically (but not necessarily) use Testcontainers for mocking the backend. Do you know whether there is any Testcontainer available for Azure IoT Hub? Azurite does not seem to support it.

@agoncal does Microsoft have any strategy for delivering Testcontainers for the individual Azure services?

@majguo majguo added the feature New feature or request label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants