KNXgroup __construct(
string
$group, integer
$eis_type
)
|
|
Instantiate a KNX logical group.
Parameters:
string |
$group: |
name of group in the form main/sub/group, e.g. 3/2/18 |
integer |
$eis_type: |
data type expected by devices associated with this group (1-15) |
API Tags:
Return API version.
API Tags:
Return: | -1: no connection established, >0: version |
Get group name
API Tags:
Return: | Name of group, format main/sub/group, e.g. 2/1/9 |
Access: | public |
Return the type of value read from bus for KNX logical group.
The EIS data type specifies the data type of a KNX logical group on the bus. If an application doesn't know a group's data type, use this function to know how to correctly interpret the returned value.
API Tags:
Return: | Type of result: 'number' or 'text' |
Access: | public |
mixed read(
object
$conn
)
|
|
Read value of KNX logical group from bus.
This function accesses the KNX bus via the eibnetmux server (using an eibnetmux object). It sends a read request for the KNX logical group and waits for any device to respond. If a response is received, the sent value is converted according to the EIS data type, and finally returned to the caller.
Parameters:
object |
$conn: |
Object of class eibnetmux |
API Tags:
Return: | Result can be integer or string. Use getValueType() to find out. |
Access: | public |
void write(
object
$conn, mixed
$value
)
|
|
Send value to KNX logical group on bus.
This function accesses the KNX bus via the eibnetmux server (using an eibnetmux object). It converts the passed value according to the EIS data type to the KNX data format and sends it in a write request for the KNX logical group.
Parameters:
object |
$conn: |
Object of class eibnetmux |
mixed |
$value: |
Value to send to bus (string or integer, depending on group's EIS) |
API Tags: