Hello,
I have problems with config-set over serial. Having following (noop) code and yaml on esp32 connected over usb serial:
enum mgos_app_init_result mgos_app_init(void) {
LOG(LL_INFO, ("Initializing"));
mgos_wdt_disable();
mgos_gpio_setup_output(12, false);
LOG(LL_INFO, ("Initialization complete"));
return MGOS_APP_INIT_SUCCESS;
}
config_schema:
- ["tick.interval", "i", 100, {title: "Tick interval (ms)"}]
- ["tick.length", "i", 1000, {title: "Tick length (us)"}]
- ["tick.sleepafter", "i", 600, {title: "Sleep after X ticks"}]
libs:
- origin: https://github.com/mongoose-os-libs/boards
- origin: https://github.com/mongoose-os-libs/ca-bundle
- origin: https://github.com/mongoose-os-libs/rpc-service-config
- origin: https://github.com/mongoose-os-libs/rpc-service-fs
- origin: https://github.com/mongoose-os-libs/rpc-uart
- origin: https://github.com/mongoose-os-libs/wifi
- origin: https://github.com/mongoose-os-libs/rpc-service-ota
- origin: https://github.com/mongoose-os-libs/rpc-ws
- origin: https://github.com/mongoose-os-libs/rpc-loopback
- origin: https://github.com/mongoose-os-libs/ota-http-server
- origin: https://github.com/mongoose-os-libs/http-server
Doing:
mos config-set tick.interval=2000
Ends with error:
E0315 11:48:21.462732 47531 serial.go:273] No response to handshake. Is /dev/ttyUSB1 the right port? Is rpc-uart enabled?
But I am able to do config-get, ls, get, put without any problems.
What am I doing wrong?
Thank you