From 158386ef44ed0d11958464bd55413dd519fd0193 Mon Sep 17 00:00:00 2001 From: Gideon le Grange Date: Mon, 4 May 2015 13:20:29 +0200 Subject: [PATCH] Corrected example error in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 63ad347..93de839 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ By default, the API will generate an exception if it cannot connect to the speci Connecting using TLS is similar: ```java - ApiConnection con = ApiConnection.connect("10.0.1.1", ApiConnection.DEFAULT_TLS_PORT, 2000); // connect to router on the default TLS API port and fail in 2 seconds + ApiConnection con = ApiConnection.connectTLS("10.0.1.1", ApiConnection.DEFAULT_TLS_PORT, 2000); // connect to router on the default TLS API port and fail in 2 seconds ``` Note that ```ApiConnection.DEFAULT_PORT``` and ```ApiConnection.DEFAULT_TLS_PORT``` are provided to allow users who use the default ports to safely use the overloaded timeout method.