This page contains detailed information about the Azure Event Hub service in the Tartabit IoT Bridge. This service lets you integrate LPWAN devices as devices in Azure Event Hub.
The Azure Event Hub service contains the information required to establish a service connection to Azure.
Shared access policies
of your event hub in the Azure Portal. To send messages, the policy must have the Send
claim, and to receive messages, must have the Listen
claim. The connection string should look something like this: Endpoint=sb://<name>.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SWXeE******0X7Uc=This event fires when a message is received from an event hub.
{
"id":"<messageid>",
"data":"<event hub payload>",
"properties": {
"prop_a":"abc",
"prop_b":123,
},
"systemProperties": {
"iotHubDeviceConnectionId": "xxx",
"iotHubConnectionModuleId": "yyy"
}
}
Send messages to an event hub.
// Send message to the hub referenced in 'myservice'.
eventhub.send('myservice', {"field1": "abc", "field2": 456})
// Send message to the hub with properties.
eventhub.send('myservice', {"field1": "abc", "field2": 456},{properties:{'prop1':'abc'}})
The following events are considered billable: