From c9dd7a5a7cb310bb31eef2b96bcad0e40aea6c2b Mon Sep 17 00:00:00 2001 From: Matthew Buckett Date: Mon, 14 Nov 2016 09:41:58 +0000 Subject: [PATCH] Fixed example code to use close() --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d88410..eaac144 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ Here is a simple example: Connect to a router and reboot it. ApiConnection con = ApiConnection.connect("10.0.1.1"); // connect to router con.login("admin","password"); // log in to router con.execute("/system/reboot"); // execute a command -con.disconnect(); // disconnect from router +con.close(); // disconnect from router ``` The above example shows a easy way of creating an unencrypted connection using the default API port and timeout, which is useful for development and testing.