Devkit.WebConnectPlugin.WebDevice.Read C# (CSharp) Method

Read() public method

public Read ( ushort address ) : ushort
address ushort
return ushort
        public override ushort Read(ushort address)
        {
            // no data ready? return error code
            if (this._webData == null) return (ushort)ResultCode.Error;

            // read all available data? return end code
            if (this._webDataPtr >= this._webData.Length) return (ushort)ResultCode.End;

            // read the next byte of data
            return this._webData[this._webDataPtr++];
        }