Skip to content

Conversation

@PaulStoffregen
Copy link

These simple changes allow for compatibility with most 32 bit boards.

In the string table, pointers need to be read with pgm_read_ptr(), since pgm_read_word() is fixed at 16 bits.

In monitor(), on systems where char is unsigned the "endReached" condition can never be true. The simple solution is to use "int" which matches the return type of _client.read() and convert to char as needed.

The example also needs to use String() to properly print the result.

I know this is a very old library that's probably not maintained anymore, but hopefully these simple changes will help anyone trying to use modern 32 bit boards.

Copy link

@SvenDS SvenDS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with succes Teensy 3.2 + W850io

@SvenDS
Copy link

SvenDS commented Jul 30, 2018

https://github.com/hadleyrich/ArduinoWebsocketClient has added the headers for Sec-Websocket-Key. Tested with a Node server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants