added support of READ_DISCRETE_INPUTS for client