Refreshing Parameter Values
Malto 4
andr0idmalto4 at gmail.com
Tue Sep 11 10:07:30 EDT 2018
Hi Dan,
It seems that I got {value: 1} and {value: now} confused, after updating my
provisions with this information they are now working the way I want them
to. All except for InternetGatewayDevice.LANDevice.1.Hosts.Host, I'm trying
to update the list of all connected Hosts to the device and no matter how I
try to do it I can't figure it out.
This is the code I am using:
declare("InternetGatewayDevice.LANDevice.1.Hosts.Host.*", {value: now});
Which, from what I understand, should update the whole tree as you
mentioned in your example, but it doesn't seem to detect connected Hosts.
Do you know any way that I could update the list of all connected Hosts to
my CPE?
Thank you very much,
-James
On Mon, 10 Sep 2018 at 20:11, Dan Morphis <dan at milkcarton.com> wrote:
> So the way second parameter works is GenieACS will only update if the data
> in its cached model is older than the value given. I.e.,
> declare("InternetGatewayDevice.ManagementServer.ConnectionRequestURL",
> {value: now}); tells GenieACS to *always* refresh parameter the value
> because the cached data will always be older than now. {value: 1} is unix
> epoch, i.e. 1-Jan-1970 at 00:00:00. So giving a time value of 1 tells Genie
> to *only* refresh the parameter if it doesn't know about it.
>
> If you want to refresh an entire tree, you need to explicitly tell
> GenieACS that:
> declare("InternetGatewayDevice.ManagementServer.*", {value: 1});
>
> That will tell GenieACS to refresh the parameters in the entire mgmt
> server tree if it doesn't already have a value for that parameter. Given
> that InternetGatewayDevice.ManagementServer shouldn't ever change via an
> external value, you wouldn't need to use {value: now}. Yes the InternetGatewayDevice.ManagementServer.ConnectionRequestURL
> parameter changes, but that will be included in the parameter list by the
> CPE when it does an inform.
>
> Make sense?
>
> -dan
>
> On Sun, Sep 9, 2018 at 10:48 PM Malto 4 <andr0idmalto4 at gmail.com> wrote:
>
>> Hello,
>>
>> I'm having a problem refreshing values. I have a Preset which runs at
>> every 2 PERIODIC Inform event to try and update some values of parameters.
>> I know that to update a specific value I can use the following code:
>>
>> declare("InternetGatewayDevice.LANDevice.1.WLANConfiguration.*.SSID",
>> {value: now});
>>
>> Using {value: 1} in the case that I always want the parameter to refresh
>> and {value: now} only if the value has changed (From what I understand).
>>
>> But now if I want to refresh a whole Object Instance, when I use:
>>
>> declare("InternetGatewayDevice.ManagementServer", {value: now});
>>
>> it updates the data model but doesn't refresh the parameter values. The
>> only way I can update the object values is with the Refresh button that
>> appears next to the Parameter in the GUI.
>> Example: https://snag.gy/NB2Arn.jpg
>>
>> Can anyone tell me how I can update all the ParameterNames AND
>> ParameterValues of a specific Object with Provisions?
>>
>> Thank you and sorry if anything is poorly explained.
>> -James
>> _______________________________________________
>> Users mailing list
>> Users at lists.genieacs.com
>> http://lists.genieacs.com/mailman/listinfo/users
>>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20180911/2a418bbe/attachment.html>
More information about the Users
mailing list