-
Notifications
You must be signed in to change notification settings - Fork 182
Send Broadcast Message
sqrtofsaturn edited this page Apr 4, 2016
·
3 revisions
Sending a message from device to device creates a series of jobs in Meshblu Core.
Basic Rules:
- Only publish to Redis in
*Received
jobs -
Subscription*
jobs can only create otherSubscription*
jobs -
*Receieved
jobs can only create*Received
jobs
devices: ["*"]
payload: "HI"
meshblu:
whitelists:
broadcast:
received: B: {}
A Device must explicitly subscribe to any message type it wants to receive in the Firehose.
emitterUuid: "A"
subscriberUuid: "B"
type: "broadcast.sent"
emitterUuid: "B"
subscriberUuid: "B"
type: "broadcast.received"
devices: ["*"]
payload: "HI"
meshblu:
whitelists:
broadcast:
received: B: {}
meshblu:
whitelists:
broadcast:
received: C: {}
A Device must explicitly subscribe to any message type it wants to receive in the Firehose.
emitterUuid: "A"
subscriberUuid: "B"
type: "broadcast.sent"
emitterUuid: "B"
subscriberUuid: "B"
type: "broadcast.received"
emitterUuid: "B"
subscriberUuid: "C"
type: "broadcast.received"