Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for 32 bit boards #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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