loxberry_io.php provides functions for frequently used communication protocols, especially to the Miniserver.
Features of this library are available from LoxBerry 1.2.5, or from the LoxBerry version mentioned at the function. Use the LB_MINIMUM parameter in your plugin.cfg.
loxberry_io.php automatically loads loxberry_system.php, so it is not needed to give both libs.
It's not required to add a path to the PHP library.
$mem_sendall_sec = 3600
|For the "mem" functions, this indicates the time until all values are retransmitted independent of they were changed.|
|$mem_sendall = 0||For the "mem" functions, setting this to 1 forces the functions to one-time dropping the cache (all values are sent again)|
Most function names and features are identical to the Perl sibling LoxBerry::IO with PHP adjusted syntax. Please be very attentive to LoxBerry Version hints on top of every function. Most functions are available from V1.2.5.
Sends a HTTP REST request to the specified Miniserver and returns the status code and value, and also a SimpleXML object of the full response.
Requests values from one or multiple Loxone inputs/blocks/outputs via HTTP REST.
Sends a value to a Loxone Miniserver input, or sends multiple values to multiple inputs.
Sends a value to a Loxone Miniserver input, or sends multiple values to multiple inputs. The function automatically saves the last state and only sends values that have changed.
Sends one or multiple values to the specified Loxone Miniserver via UDP.
Sends one or multiple values to the specified Loxone Miniserver via UDP. The function automatically saves the last state and only sends values that have changed.