nxtlib/src/DigitalSensor.cs
/// <summary>
/// <para>Reads the value of the variable stored at the two consecutive bytes at the address.</para>
/// </summary>
/// <param name="address">The address of the variable</param>
/// <returns>The value of the variable</returns>
Reads the value of the variable stored at the two consecutive bytes at the address.
Reads the value of the variable stored at the two consecutive bytes at the address .
internal UInt16? ReadWordFromAdress(byte address)
        {
            byte[] request = new byte[] { deviceAddress, address };
            byte[] reply = SendN(request, 2);
            if (reply != null && reply.Length >= 2)
                return Protocol.GetUInt16(reply, 0);
            else
                return null;
        }
internal UInt16 ? ReadWordFromAdress ( byte address ) { byte [ ] request = new byte [ ] { deviceAddress , address } ; byte [ ] reply = SendN ( request , 2 ) ; if ( reply != null && reply . Length >= 2 ) return Protocol . GetUInt16 ( reply , 0 ) ; else return null ; }
Reads the value of the variable stored at the two consecutive bytes at the address.
Reads the value of the variable stored at the two consecutive bytes at the address .
The value of the variable
The value of the variable
address
byte
The address of the variable
The address of the variable