winder / Universal-G-Code-Sender

A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.
http://winder.github.io/ugs_website/
GNU General Public License v3.0
1.84k stars 758 forks source link

Fluidnc websocket connection failed. #2493

Closed John93-Blynk closed 3 months ago

John93-Blynk commented 3 months ago

Version

2.1.6

Hardware / Firmware

FluidNC

What happened

Hey there, I can't get Fluidnc to work using websocket. I'm using the latest version of Fluidnc (3.7.15), the latest version of the UGS platform (2.1.6), and when I hit connect, a message says ("cannot invoke "javax.websocket.session.close()" because "this.user.session" is null) appears. IMG_20240322_213926 Am I missing something? Can you please tell me what should I do?

Greetings.

How to reproduce

No response

Operating System

Windows 10

Anything else

No response

breiler commented 3 months ago

Use the TCP connection driver instead, using the telnet protocol: http://wiki.fluidnc.com/en/features/wifi_bt#telnet

The FluidNC websocket protocol is undocumented and does not work with UGS. For instance it assumes that the client sends pings to keep the connection alive.

John93-Blynk commented 3 months ago

That worked like a charm. Thank you so much for your help. Have a great day.