-
Notifications
You must be signed in to change notification settings - Fork 84
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
Add MQTT Trigger #454
Comments
add @FelixTing for awareness |
IMHO, the premise of this issue is whether we allow app-service to connect to an external MQTT broker? |
@FelixTing , As you have pointed out, go-mod-messaging is for internal MessageBus. For allowing incoming data from external MQTT, we need to handle it similar to the HTTP trigger but with secure connection similar to |
@FelixTing , What is the Use Case for receiving data from external broker? Are you sending Event/Readings or custom data type? What is the end goal of receiving this data? |
@lenny-intel We tried to use app service to interact with AWS IoT Device Shadow. The initial thought is to use app service to subscribe to AWS IoT Device Shadow topics. When receiving messages, analyze the topic name and the payload(custom data) via a built-in or custom function to determine the action needs to be taken, such as calling core-command API to update device resource values. |
@lenny-intel we are finding another way to deal with the downstream request, so please feel free to close this issue if it is not the case app service designed for. |
@FelixTing , @cloudxxx8 , This MQTT trigger seems appropriate for your use case when creating a custom App Service with custom function to operate on the custom data received from the external MQTT broker. The app-functions-sdk has the ability for a custom App Service to specify the Does this make sense for your use case or is |
Thanks, @lenny-intel , this would be very useful. |
Implement similar to how HTTP trigger works (per @lenny-intel ) |
close #454 Signed-off-by: lenny <[email protected]>
close #454 Signed-off-by: lenny <[email protected]>
close #454 Signed-off-by: lenny <[email protected]>
close #454 Signed-off-by: lenny <[email protected]>
close #454 Signed-off-by: lenny <[email protected]>
close #454 Signed-off-by: lenny <[email protected]>
close #454 Signed-off-by: lenny <[email protected]>
close #454 Signed-off-by: lenny <[email protected]>
close #454 Signed-off-by: lenny <[email protected]>
close #454 Signed-off-by: lenny <[email protected]>
close #454 Signed-off-by: lenny <[email protected]>
This triggers function pipeline from data subscribed from MQTT Broker.
Will handle JSON or CBOR which are identified by the initial bytes in the data.
If ResponseTopic is provided in configuration, the results from the function pipeline (if any) are publish to the configured topic.
Secure connections will follow the same patter/options used for the MqttSecretSend used to export to an MQTT Broker.
The text was updated successfully, but these errors were encountered: