You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return the contents of the store for the specified keys or keys matching the specified pattern(s)
Parameters
keys - a string or table of strings containing the keys or patterns of keys, if pattern is true. Defaults to all keys.
pattern - a boolean indicating wether or not the string(s) provided are to be considered regular expression patterns (true) or literal strings to match (false). Defaults to false.
Returns
a table of key-value pairs from the dynamic store which match the specified keys or key patterns.
Notes
if no parameters are provided, then all key-value pairs in the dynamic store are returned.
Return the DHCP information for the specified service or the primary service if no parameter is specified.
Parameters
serviceID - an optional string contining the service ID of the interface for which to return DHCP info. If this parameter is not provided, then the default (primary) service is queried.
Returns
a table containing DHCP information including lease time and DHCP options
Notes
a list of possible Service ID's can be retrieved with hs.network.configuration:contents("Setup:/Network/Global/IPv4")
generates an error if the service ID is invalid or was not assigned an IP address via DHCP.
Specify the key(s) or key pattern(s) to monitor for changes.
Parameters
keys - a string or table of strings containing the keys or patterns of keys, if pattern is true. Defaults to all keys.
pattern - a boolean indicating wether or not the string(s) provided are to be considered regular expression patterns (true) or literal strings to match (false). Defaults to false.
Returns
the store Object
Notes
if no parameters are provided, then all key-value pairs in the dynamic store are monitored for changes.
| Signature | hs.network.configuration:setCallback(function | nil) -> storeObject |
| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| Type | Method |
| Description | Set or remove the callback function for a store object |
| Parameters |
a function or nil to set or remove the store object callback function
|
| Returns |
the store object
|
| Notes |
The callback function will be invoked each time a monitored key changes value and the callback function should accept two parameters: the storeObject itself, and an array of the keys which contain values that have changed.