Hi
I THINK it is connecting. I am getting a message on the LinuxCNC side of things saying "WebSocket connected", but any of the commands I try and send don't seem to work, and I don't know if this is because I need to log onto the server first of if the commands aren't formatted correctly of if the sub-protocol has something to do with it.
The server requires the client to log on with: username = default and password = default.
I am unsure how this needs to be sent - I have tried just sending a text string but that doesn't seem to be working, but I am not 100% certain my commands are getting through.
As a trial I connected to the server through a browser and did the login procedure there, but still no commands seem to get through. So I am unsure what I can do to test if the commands are actually getting to the server, even though it says it is connected. I am trying to send the command as a text string as below:
Dim command as String
command = " { ""id"": ""my-id"", ""command"":""put"", ""name"":""state"", ""state"":""STATE_ESTOP_RESET"" }"
ws.SendText(command)
Any pointers and advise would be greatly appreciated.