nxtlib/src/DigitalSensor.cs
/// <summary>
/// <para>Reads the value of the variable stored 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 address.
Reads the value of the variable stored at the address .
internal byte? ReadByteFromAddress(byte address)
        {
            byte[] request = new byte[] { deviceAddress, address };
            byte[] reply = (this.brick.link is Bluetooth)
                ? Send1(request)
                : SendN(request, 1);
            if (reply != null && reply.Length >= 1)
                return reply[0];
            else
                return null;
        }
internal byte ? ReadByteFromAddress ( byte address ) { byte [ ] request = new byte [ ] { deviceAddress , address } ; byte [ ] reply = ( this . brick . link is Bluetooth ) ? Send1 ( request ) : SendN ( request , 1 ) ; if ( reply != null && reply . Length >= 1 ) return reply [ 0 ] ; else return null ; }
Reads the value of the variable stored at the address.
Reads the value of the variable stored 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