diff options
Diffstat (limited to 'controller/zt1-controller-client/test-controller.js')
-rw-r--r-- | controller/zt1-controller-client/test-controller.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/controller/zt1-controller-client/test-controller.js b/controller/zt1-controller-client/test-controller.js index d76bad8f..cddff031 100644 --- a/controller/zt1-controller-client/test-controller.js +++ b/controller/zt1-controller-client/test-controller.js @@ -3,5 +3,12 @@ var ZT1ControllerClient = require('./index.js').ZT1ControllerClient; var zt1c = new ZT1ControllerClient('http://127.0.0.1:9993/','5d6181b71fae2684f9cc64ed'); zt1c.status(function(err,status) { + if (err) + console.log(err); console.log(status); -});
\ No newline at end of file + zt1c.listNetworks(function(err,networks) { + if (err) + console.log(err); + console.log(networks); + }); +}); |