Go Down

Topic: Sending WebSocket Messages with AT Instructions (Read 149 times) previous topic - next topic

sserena

Hello

I have a Grove-Uart Wifi module connected to an Arduino UNO. I'd like to send websocket messages. From what I understand, the AT instruction set is basically the way to go in this situation. I can establish a connection to the websocket server (handshake according to https://en.wikipedia.org/wiki/WebSocket). However, when it comes to actually sending messages, the framing format uses bits in its header to indicate the type of data and its length and I can't see any way to do that with AT commands.

I'm hoping somebody knows better and is able to help. Thanks!


sserena

Thanks for the response. How is this going to help? It seems to me that this library does not specifically support websocket and as such, I'm stuck with the same issue, no?

Thanks.

Juraj

the WiFiEsp client implements the Client interface, which you can use with some websocket library. this one looks promising

sserena

Just a quick thank you! Took me a few attempts and eventually got it to work in combination with https://github.com/arduino-libraries/ArduinoHttpClient.

Juraj


Go Up