This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Siegenia AEROPAC
#3
mmm i only receive a 1006 error

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?
Reply


Messages In This Thread
Siegenia AEROPAC - by gjniewenhuijse - 04.10.2019, 12:43
RE: Siegenia AEROPAC - by admin - 04.10.2019, 13:18
RE: Siegenia AEROPAC - by gjniewenhuijse - 29.10.2019, 15:17
RE: Siegenia AEROPAC - by gjniewenhuijse - 30.10.2019, 09:47
RE: Siegenia AEROPAC - by admin - 30.10.2019, 12:51
RE: Siegenia AEROPAC - by admin - 30.10.2019, 14:40
RE: Siegenia AEROPAC - by gjniewenhuijse - 30.10.2019, 14:50

Forum Jump: