Currently Meshblu supports two types of forwarders, Meshblu and Webhook. When a Meshblu device emits a message, broadcast, or configuration change, Meshblu will automatically forward the message to another Meshblu device or a webhook.

Webhook Example

0

In this case, Device A has a forwarder set up to a web service (e.g. Github or Slack). The web service will receive a HTTP POST request containing the message as the HTTP body and metadata as X-MESHBLU headers.

{
  "meshblu": {
    "forwarders": {
      "broadcast": {
				"sent": [
        	{
      			"type": "webhook",
          	"url": "http://requestb.in/18gkt511",
          	"method": "POST"
        	}
    		]
      }
    }
  }
}

Meshblu Example

Meshblu forwarders allow a message to be mapped into a message of a different type.

0

Device A will send a broadcast, that will be transformed into a message.sent from Device A. Device B will then receive a copy of that message sent from Device A.