mbusSlaveRegister (Function) |
Top Previous Next |
This function registers a slave device. Registered device can be decrypted if the correct key is provided. Only data from registered devices is received if the receive filter is enabled with mbusFilterEnable. The registration is persistent and must be removed with mbusSlaveUnregister.
Input: handle : SYSHANDLE A handle to the connection
index : USINT (1..64) The index of the registration.
sec_addr : STRING The address to the slave to register. See mbusScan for a description of the address format.
key : PTR Pointer to a 16-byte array containing the key needed to decrypt the data.
Returns: INT
Declaration: FUNCTION mbusSlaveRegister : INT;
Example: |