Closed RickCarlino closed 8 years ago
It's as if I can't send messages directly to devices anymore. If they are subscribed to me and I send the message to ["*"]
, then the message arrives, no problem.
For example, this will get to my recipient, no problem:
["message",{"devices":["*"],"hello":"WORLD"}]
But this message will never arrive:
["message",{"devices":"ade3785c-fb6e-4f07-877a-ace9d03f9b3e","something":"different"}]
More a curious question than anything. In your everyone message you are sending an array with one "*" within it. In the one that you state won't arrive, it is not an array. Typo?
Tried that also. Still no luck
Sent from a mobile device. Please excuse my brevity. On Feb 26, 2016 7:49 PM, "Brian Ehlert" notifications@github.com wrote:
More a curious question than anything. In your everyone message you are sending an array with one "*" within it. In the one that you state won't arrive, it is not an array. Typo?
— Reply to this email directly or view it on GitHub https://github.com/octoblu/meshblu/issues/124#issuecomment-189551951.
The device you are messaging has to have the messaging device in its whitelist in order for it to be allowed to message directly in that way.
Example:
conn.update({
'sendWhitelist': ["uuid-of-the-thing-sending-messages"]
});
@virgilvox we tried this with ["*"]
but that didn't change anything. Does it have to be a specific UUID?
Try add it into receiveWhitelist message with ["*"] means broadcast, must in receiveWhitelist
B broadcast a message , A must in B's receiveWhitelist and A subscribed B
NOTE: The last two frames in that image work as expected. I left them in the screenshot to show that I am getting messages from the remote end without problems.
Setup
devices: "*"
devices: "remote-uuid"
Problems
Peculiarities?
["message", {}]
frame, MeshBlu is echoing back a["message", null]
frame. Is this expected behavior, or the response of a malformed message?READY
response is not the same as the one in the documentation. See image above to see actual response I am getting.