Change DNS-SD advertising interval

I’m using the DNS-SD lib on a battery-powered device to advertise the device. Looking at the logs, I see mgos_snd_sd.c ‘advertising’ every 20 seconds. Is there a way I can change this to reduce the frequency it advertises? Once every couple of minutes would be fine I think

The advertising interval is set in mgos_dns_sd_init.

You can change it there, but I don’t know if it doesn’t break the requirements of the RFC.
Maybe you can file a PR to make adv_intvl configurable in mos.yml.

That’s helpful, thanks @nliviu! For the moment I’ve just created a local copy and manually updated it.