private async Task EnableImu() { var msg = new ESenseMessage(CMD_IMU_ENABLE, ENABLE, (byte)SamplingRate); await _connection.WriteAsync(CHAR_IMU_ENABLE, msg); _imuEnabled = true; }
/// <summary> /// Update the remote device name and it's local copy. /// </summary> /// <param name="value">New device name</param> public async Task <bool> SetAsync(string value) { var msg = new RawMessage() { Data = Encoding.ASCII.GetBytes(value) }; bool success = await _conn.WriteAsync(CHAR_NAME_W, msg); _name = value; return(success); }