Corrected example error in README

This commit is contained in:
Gideon le Grange 2015-05-04 13:20:29 +02:00
parent 1bfc4fbb70
commit 158386ef44
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ By default, the API will generate an exception if it cannot connect to the speci
Connecting using TLS is similar: Connecting using TLS is similar:
```java ```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. 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.