Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

RPC over MQTT message format?

holla2040holla2040 Montrose, CO

Folks,
Is RPC over MQTT possible? What the format of the message?

I've tried the following from linux command line
mosquitto_pub -h broker.hivemq.com -p 1883 -t holla2040/rpc -m '{"method":"Sys.GetInfo"}'
mosquitto_pub -h broker.hivemq.com -p 1883 -t holla2040/rpc -m '{"call":"Sys.GetInfo"}'
mosquitto_pub -h broker.hivemq.com -p 1883 -t holla2040/rpc -m '{"name":"Sys.GetInfo"}'

results in console errors
mg_rpc_ev_handler 0x3ffefd0c INVALID FRAME (24): '{"method":"Sys.GetInfo"}'
mg_rpc_ev_handler 0x3ffefd0c INVALID FRAME (22): '{"call":"Sys.GetInfo"}'
mg_rpc_ev_handler 0x3ffefd0c INVALID FRAME (22): '{"name":"Sys.GetInfo"}'

What's the message format? if this did work, which topic gets the response?

Thanks,
Craig

Comments

Sign In or Register to comment.