Skip to content

adibenmati/node-red-contrib-azure-event-hub-send-message

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

axonize-node-red-contrib-azure-event-hub-send-message

This custom node-red node is used to send messages to the Azure Event Hub.

Input Parameters

Name (Optional)

The name parameter takes a string as input. The string would appear as the name of the node. Default Value is: Axonize - Send - Azure Event Hub

Connection String (Mandatory):

The endpoint connection string which allows you to connect to the event hub. Format: Endpoint=sb://XXXXXXXXX-prd.servicebus.windows.net/;SharedAccessKeyName=XXXX;SharedAccessKey=XXXXX

Event Hub path (Mandatory):

The name of the event hub where the messages have to be sent to.

Installation

npm i axonize-node-red-contrib-azure-event-hub-send-message

Usage

  1. Copy the below JSON
[{"id":"864e40f6.22f76","type":"tab","label":"Azure Event Hub Send Message","disabled":false,"info":""},{"id":"22085b05.857334","type":"inject","z":"864e40f6.22f76","name":"Send Payload","topic":"","payload":"{\"data\": \"{temperature: 95, wind: 10}\" }","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":"","x":190,"y":300,"wires":[["27a034a5.375acc"]]},{"id":"3110b8b3.46b708","type":"debug","z":"864e40f6.22f76","name":"","active":true,"console":"false","complete":"true","x":802.000054359436,"y":299.9299564361572,"wires":[]},{"id":"27a034a5.375acc","type":"axonizeSendAzureEventHubMessages","z":"864e40f6.22f76","name":"Axonize - Send - Azure Event Hub","x":520,"y":320,"wires":[["3110b8b3.46b708"]]}]
  1. Access the node-red UI using http://localhost:1880. Click on Import-->Clipboard and paste the copied json in the text area and Click Import.

  2. Update the Name, Connection String and Event Hub path parameters with the ones you wish to send messages to.

About

Send messages to azure event hub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.7%
  • HTML 42.3%