Page 1 of 1

QLC+ not (always) responding to websocket messages

Posted: Tue Oct 25, 2022 9:25 pm
by Banus
Hi all,

I'm building an external show trigger with an ESP32 and using the ArduinoHTTPClient library to make a ws connection with QLC+.
I've set up a connection and sending the following message:

client.beginMessage(TYPE_TEXT);
client.print("QLC+API|setFunctionStatus|114|1");
client.endMessage();

This code works sometimes, 1 in 10 presses seems to come over. I'm curious what could make this so unreliable.
I've tested the ESP32 with "PieSocket" a online ws tester and the messages come in clear.
Also when I test the test_api.html (on different machine in network) QLC+ reacts directly.
Am I overlooking something? The message seems OK.

I hope you have enough information, I will gladly provide you with more when needed.

Banus

Re: QLC+ not (always) responding to websocket messages

Posted: Tue Oct 25, 2022 9:28 pm
by Banus
Running 4.12.6 Windows 10

Re: QLC+ not (always) responding to websocket messages

Posted: Wed Oct 26, 2022 7:55 am
by GGGss
Try to snoop the network traffic ith f.i. wireshark and verify that network packets are sent.
To understand better, I'd need an overview of your network settings.

Re: QLC+ not (always) responding to websocket messages

Posted: Wed Oct 26, 2022 8:50 am
by Banus
Hi GGGss,

I've installed wireshark on the receiving end.(QLC+ PC)
I Cannot attach the wireshark file so i hosted it here: https://filebin.net/267eohhh4caopy9b
In this recording I've pressed the button 3 times. Luckly press 2 was coming through and triggered the function.

Banus

Re: QLC+ not (always) responding to websocket messages

Posted: Thu Oct 27, 2022 7:43 am
by GGGss
Weird - your snoop only shows one way direction messages... isn't it suppose to send back an ACK? This would mean the sockets stays open until timeout...