- My goal is: Customize my own MQTT topic and remote license
- My actions are: In mos.yml I changed,
- ["rpc.mqtt_pub_topic", "K/%.*s/rpc"]
- ["rpc.mqtt_sub_topic", "K/%.*s/rpc"]
Build and flash it, all perfect, but not work for following command
mos --port mqtt://mysite.foo/K/deviceId call Sys.GetInfo
- The result I see is:
Error: context deadline exceeded
/build/mos-YUowqD/mos-2.16.0+adcad3f~bionic0/go/src/github.com/mongoose-os/mos/common/mgrpc/mgrpc.go:460:
/build/mos-YUowqD/mos-2.16.0+adcad3f~bionic0/go/src/github.com/mongoose-os/mos/mos/dev/dev_conn_impl.go:167:
/build/mos-YUowqD/mos-2.16.0+adcad3f~bionic0/go/src/github.com/mongoose-os/mos/mos/dev/dev_conn_impl.go:180:
/build/mos-YUowqD/mos-2.16.0+adcad3f~bionic0/go/src/github.com/mongoose-os/mos/mos/main.go:196: call failed
In mos console, I could see:
mg_rpc.c:293 Sys.GetInfo via MQTT
- My expectation & question is:
If drop those two lines in mos.yml, all behavior as expected,
but I do need to distinct different path.
I guess that’s bug of mos tool, cause all rpc call using my program work perfect except mos command.