test_compliance/attribute_services/attribute_read/024.js
// 4. REPEAT FOR EACH DATA TYPE.
4. REPEAT FOR EACH DATA TYPE.
4 . REPEAT FOR EACH DATA TYPE .
function read_allvalues(session,nodeId,callback) {
    var nodesToRead = [];
    nodesToRead.push({
        nodeId: nodeId,
        attributeId: AttributeIds.Value,
        indexRange: null,
        dataEncoding: null
    });
    session.read(nodesToRead, function (err, unused, dataValues) {
        callback(err,dataValues);
    });
}
function read_allvalues ( session , nodeId , callback ) { var nodesToRead = [ ] ; nodesToRead . push ( { nodeId : nodeId , attributeId : AttributeIds . Value , indexRange : null , dataEncoding : null } ) ; session . read ( nodesToRead , function ( err , unused , dataValues ) { callback ( err , dataValues ) ; } ) ; }
4.
4 .
// inspect(dataValues); // expected_value = dataValues[0].value.value[indexToFind];