cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Event Mesh send MQTT

DLange
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Tobias_Griebe
Advisor
Advisor

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

DLange
Participant
0 Kudos

Hi tobias.griebe,

thanks for the hint. The credentials in the service key are clear for me. REST interface is also working. Do you / does SAP have a recommendation / best practice regarding tooling to test MQTT over Websocket together with SAP Event Mesh?

Thanks

Best regards

DL

Tobias_Griebe
Advisor
Advisor
0 Kudos

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

DLange
Participant
0 Kudos

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

Tobias_Griebe
Advisor
Advisor
0 Kudos

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

DLange
Participant
0 Kudos

Hi tobias.griebe,

we were able to manage our challenges in the meanwhile. Via webhook we push the event from event Mesh via Cloud Connector to onPremise webservice. Thanks for hints / advise.

Best regards

DL

Answers (0)