# Bridge Data to SAP Event Mesh

EMQX Rule Engine supports sending messages to SAP Event Mesh (opens new window) through HTTP request (httprest).

Event Mesh is an important message exchange component of SAP BTP (opens new window).

The SAP BTP includes all the technology combinations, such as SAP HANA (in memory computing platform), SAP Analytics Cloud (analysis cloud), SAP Integration Suite and SAP Extension Suite.

The IoT data of EMQX can be sent to these products of SAP BTP through this bridge.

# Prepare the SAP Event Mesh environment

Prepare the SAP Event Mesh environment and obtain the service keys. For details see Create Instance of SAP Event Mesh (opens new window)

Take the following Service Keys as an example:

{
    "xsappname": "some-app-name",
    "management": [
        {
            "oa2": {
                ...
            },
            "uri": "..."
        }
    ],
    "messaging": [
        {
            "oa2": {
                "clientid": "my_clientid",
                "clientsecret": "my_clientsecret",
                "tokenendpoint": "https://123trial.authentication.demo.com/oauth/token",
                "granttype": "client_credentials"
            },
            "protocol": [
                "amqp10ws"
            ]
        },
        {
            "oa2": {
                "clientid": "my_clientid",
                "clientsecret": "my_clientidsecret",
                "tokenendpoint": "https://123trial.authentication.demo.com/oauth/token",
                "granttype": "client_credentials"
            },
            "protocol": [
                "httprest"
            ],
            "broker": {
                "type": "saprestmgw"
            },
            "uri": "https://sap-messaging-pubsub.fooapps.demo.com"
        }
    ],
    "serviceinstanceid": "188783-7893-8765-8872-77866"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33