Hi Federico,
yes, this looks like an easy and quick solution. I feel stupid because I
haven't thought of that.
I will try it out.
Thank you very much!
Greetings,
Oliver
On Thu, Oct 18, 2018 at 09:31:35AM -0700, Federico Capoano wrote:
> Hi Oliver,
>
> the easiest way you can do what you want is to have a template in OpenWISP
> which modifies the interval of the agent with the following template (flagged
> as default):
>
> {
> "openwisp": [
> {
> "config_name": "controller",
> "config_value": "http",
> "interval": 43200
> }
> ]
> }
>
> This way, when a device is flashed, it will use the value you set in the
> firmware image, which would be 120 seconds if you haven't edited the default.
> The agent will keep on trying to register itself to the server until it
> succeeds, once it succeeds it will download the configuration from the server
> immediately and merge it with the local configuration, which means the
> interval
> value would be changed to the value you want.
>
> Easy, no change of code required and if you want to change the interval value
> in the future you can do it easily from the template.
>
> I hope this helps.
> Federico
--
You received this message because you are subscribed to the Google Groups
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.