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

Websockets for Arduino ESP8266 throws errors #534

Closed
kristsm opened this issue Feb 24, 2016 · 6 comments
Closed

Websockets for Arduino ESP8266 throws errors #534

kristsm opened this issue Feb 24, 2016 · 6 comments
Assignees
Milestone

Comments

@kristsm
Copy link

kristsm commented Feb 24, 2016

I installed websockets library but even then compiler throws following errors:

scons: *** [.pioenvs\esp12e\WebSockets_ID549\WebSockets.o] Error 1
.pioenvs\esp12e\WebSockets_ID549\WebSocketsClient.cpp: In member function 'void WebSocketsClient::begin(const char_, uint16_t, const char_, const char_)':
.pioenvs\esp12e\WebSockets_ID549\WebSocketsClient.cpp:67:16: error: 'RANDOM_REG32' was not declared in this scope
randomSeed(RANDOM_REG32);
^
scons: *_* [.pioenvs\esp12e\WebSockets_ID549\WebSocketsClient.o] Error 1
[ ERROR ] Took 13.12 seconds

It seems ESP8266 core files are not up to date. Can I solve this myself like - updating Platformio ESP8266 arduino framework with latest official ESP8266 Arduino github repository?

Thanks!

@valeros
Copy link
Member

valeros commented Feb 25, 2016

Hi @kristsm RANDOM_REG32 is defined in RC framework version, please follow these instructions to use the latest framework.

@kristsm
Copy link
Author

kristsm commented Feb 25, 2016

Hi, valeros! Thanks for the help! Your instructions healed compiling problem.

Still Websockets are not working, but it might also be related to my code.

@ivankravets
Copy link
Member

@kristsm please provide project to reproduce this issue

@ivankravets ivankravets added this to the 2.8.5 milestone Feb 28, 2016
@kristsm
Copy link
Author

kristsm commented Feb 29, 2016

Hi! No worries, I checked the websocket part of the code and everything is working fine !

@ivankravets
Copy link
Member

@ivankravets
Copy link
Member

Please reopen this issue if you still have problems

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

No branches or pull requests

3 participants