octoblu / meshblu

Meshblu is a cross-protocol IoT machine-to-machine messaging system.
https://meshblu.readme.io/
MIT License
815 stars 182 forks source link

Empty message frames coming back from server? #124

Closed RickCarlino closed 8 years ago

RickCarlino commented 8 years ago

socket_messages

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

RickCarlino commented 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"}]
brianehlert commented 8 years ago

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?

RickCarlino commented 8 years ago

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.

virgilvox commented 8 years ago

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.

virgilvox commented 8 years ago

Example:

conn.update({
      'sendWhitelist': ["uuid-of-the-thing-sending-messages"]
    });
roryaronson commented 8 years ago

@virgilvox we tried this with ["*"] but that didn't change anything. Does it have to be a specific UUID?

eternaltao commented 8 years ago

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