components/bootloader_support/include/esp_flash_partitions.h
and it seems that necessary enum values are enclosed in #if 0 enum ... #endif
. But in official ESP-IDF sources the needed enum is not enclosed in #if 0 #endif block. Is there some way to easily use this ESP-IDF feature along with rest of mongoose features(except mongoose OTA feature). Thank you.
raspberrypi.local
domain name using mdns?
@DrBomb
mgos_sys_config_set_rpc_udp_listen_addr("udp://0.0.0.0:1234");
char *err = NULL;
save_cfg(&mgos_sys_config, &err);
printf("Saving configuration: %s\n", err ? err : "no error");
free(err);
I have done this way and in logs it prints saved to conf9.json and no error
But when I ran this mos call --port udp://192.168.43.107:1234/ Sys.GetInfo
command it doesn't work.
After I set it using mos config-set , and call the rpc over udp that works. Am I missing something here ??
@abhibhatia98
rpc.udp.listen_addr
is for listening to the debug output of a mos device FROM a remote machine without serial connection. It sounds like what you are doing is send RPC command TO a mos device? In which case you need the RPC libs
@gadget-man, Actually I didn't get your Comment, so explaining issue I am facing again:-
So I am trying to setup rpc.udp.listen_addr
To do so 2 approaches are here
mos config-set rpc.udp.listen_addr=udp://0.0.0.0:1234
mos call --port udp://IP:1234/ Sys.GetInfo
get the response back with device packet. mos call --port udp://IP:1234/ Sys.GetInfo
,it get fails with Error: context deadline exceeded
. After that I reboot the device try same it gives response. So is it like that save_cfg method requires reboot or something else I am missing ?mos config-get rpc.udp.listen_addr
?
mos config-get
OTA.Write
is not locked on the binaries, and you could potentially use it to write into the second partition with the loopback RPC
@DrBomb
@abhibhatia98 The device will need to be rebooted after the setting is changed. The address is bound to the URI at boot time, so changing the config value will not take effect until you restart the device
I have doing something to overcome manual reboot
- ["restart.pending", "b", true, {"title": "First time restart done or not"}]
if(mgos_sys_config_get_restart_pending())
{
mgos_sys_config_set_restart_pending(false);
mgos_system_restart();
}
this cause device continuously rebooting. Do you have ideawhats the issue. I have checked condition works fine when I comment restart method
Request queue overflow
from mg_rpc_callf handler. I'm sending chunks of size 256bytes every 2 seconds. What can be the problem?