def complete_pairing(code)
      # Send secret code to the TV to compete the pairing process
      secret = Secret.new
      secret.secret = encode_hex_secret(code)
      outer = send_message(secret, OuterMessage::MessageType::MESSAGE_TYPE_SECRET)

      # Clean up
      @gtv.ssl_client.close

      raise PairingFailed, outer.status unless OuterMessage::Status::STATUS_OK == outer.status
    end
def complete_pairing(code)
      # Send secret code to the TV to compete the pairing process
      secret = Secret.new
      secret.secret = encode_hex_secret(code)
      outer = send_message(secret, OuterMessage::MessageType::MESSAGE_TYPE_SECRET)

      # Clean up
      @gtv.ssl_client.close

      raise PairingFailed, outer.status unless OuterMessage::Status::STATUS_OK == outer.status
    end
Complete the pairing process
 @param [String] code The code displayed on the Google TV we are trying to pair with.