emqx-web-hook icon indicating copy to clipboard operation
emqx-web-hook copied to clipboard

How to get a byte aray payload when using weh-hook's publish action

Open alwyngo opened this issue 4 years ago • 1 comments

What I config in emqx_web_hook.conf is like web.hook.rule.message.publish.2 = {"action": "on_message_publish", "topic": "foo/#"} When the server receviced the map data, the payload field's type is String not a byte array, the message is messy code like this ���f}����@@@, what can I do to get a byte array payload?

alwyngo avatar Nov 28 '21 13:11 alwyngo

if possible to accept it with ByteBuffer or other data type?

alwyngo avatar Nov 28 '21 13:11 alwyngo