nxtlib/src/Protocol.cs
/// <summary> 
/// [Native] Keeps the NXT on and
///  returns a value saying how long until the NXT falls asleep again, in milliseconds.
/// </summary>
/// <returns>The time until the NXT falls asleep again, in milliseconds.</returns>
[Native] Keeps the NXT on and
returns a value saying how long until the NXT falls asleep again, in milliseconds.
[ Native ] Keeps the NXT on and returns a value saying how long until the NXT falls asleep again in milliseconds .
public int KeepAlive()
        {
            byte[] request = new byte[] {
            0x00,
            (byte) DirectCommand.KeepAlive
            };
            byte[] reply = CompleteRequest(request);
            UInt32 sleeplimit = GetUInt32(reply, 3);
            return Convert.ToInt32(sleeplimit);
        }
public int KeepAlive ( ) { byte [ ] request = new byte [ ] { 0x00 , ( byte ) DirectCommand . KeepAlive } ; byte [ ] reply = CompleteRequest ( request ) ; UInt32 sleeplimit = GetUInt32 ( reply , 3 ) ; return Convert . ToInt32 ( sleeplimit ) ; }
[Native] Keeps the NXT on and
returns a value saying how long until the NXT falls asleep again, in milliseconds.
[ Native ] Keeps the NXT on and returns a value saying how long until the NXT falls asleep again in milliseconds .
The time until the NXT falls asleep again, in milliseconds.
The time until the NXT falls asleep again in milliseconds .