on 2022 May 12 11:33 AM
Hi community,
does someone have an idea / blog post / instruction how to send MQTT events / messages from external system to SAP Event Mesh? I have complete Event Mesh setup but no glue where to get the necessary infos like port... I am trying to connect via MQTTX tool. Maybe someone did already similar.
Thanks
Best regards
DL
Request clarification before answering.
Hi dlange_87,
you get all the credentials and endpoints when you create a service key for your Event Mesh instance. See also here: Understanding Service Key of SAP Event Mesh
I haven't used MQTTX myself, but you need to make sure that it supports MQTT over WebSockets, or it won't be able to connect to SAP Event Mesh.
Best regards,
Tobias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi dlange_87,
I personally haven't used any third party tool for my tests. For a quick demo or test I usually use the node.js Lib, that you can also run from your local machine with the contained producer and consumer example: https://www.npmjs.com/package/@sap/xb-msg-mqtt-v311
Obviously this is not as fancy as a native app with an UI. 😉
Best regards,
Tobias
Hi tobias.griebe,
thanks for the hint regarding the node.js Lib. I am wondering if we could not send MQTT events / messages from an external MQTT broker to the SAP Event Mesh. At least currently I have no idea how to configure the MQTT broker to send data (topics like OAuth 2.0, Port, ...)
Thanks
Best regards
DL
Hi dlange_87,
do you have a specific MQTT broker in mind for this?
As you already mentioned brokers are usually only providing server capabilities. This is the same for SAP Event Mesh. In such a scenario you would need some kind client/integration layer (like SAP Integration Suite - CPI) that establishes the connectivity to both brokers.
SAP Event Mesh offers the webhook functionality to push incoming messages from a queue to a REST endpoint. Depending on the detailed use-case this might be an option for such an integration, but this would only be one-way.
Best regards,
Tobias
User | Count |
---|---|
89 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.