public bool SetReaderMode() { var response = _connection.ModeReader(); if (response.Code == 502) { _connection.Close(); return(false); } return(response.Code == 200 || response.Code == 201); }