29.10.2019, 15:17
(This post was last modified: 30.10.2019, 09:57 by gjniewenhuijse.)
mmm i only receive a 1006 error
Anyone a suggestion how to find a detailed error?
30-10-2019: change the protocol from ws to wss gives no error 1006, but how to control the box?
Code:
* arg: 1
* nil
* arg: 2
* nil
* arg: 3
* bool: false
* arg: 4
* number: 1006
* arg: 5
* string: wrong state
Code:
iIp = '192.168.x.x'
iUsr = 'admin'
iPwd = 'xxxxxxxx'
if not ws then
ws = require('user.websocket')
url = 'wss://'..iUsr..':'..iPwd..'@'..iIp..':443/WebSocket'
-- mode is either sync or copas, second parameter sets timeout in seconds
client = ws.client('sync', 10)
client:connect(url)
end
log(client:receive())
Anyone a suggestion how to find a detailed error?
30-10-2019: change the protocol from ws to wss gives no error 1006, but how to control the box?