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

Unable to build -> '_ws_client' does not name a type #28

Closed
BoxedBrain opened this issue Mar 15, 2018 · 7 comments
Closed

Unable to build -> '_ws_client' does not name a type #28

BoxedBrain opened this issue Mar 15, 2018 · 7 comments

Comments

@BoxedBrain
Copy link

Hello,
today I tried to compile and upload the code to my D1 mini but it wont work.

Here is my platformio.ini
https://hastebin.com/eqilubojez.makefile

And my console output with exact message:
https://hastebin.com/hesoyefumi.tex

Please share some knowledge 👍
Thanks

@krisajacobs
Copy link

I'm having the exact same problem.

@idolpx
Copy link
Owner

idolpx commented Mar 20, 2018

I just did a "pio update" and "pio lib update" and everything compiles fine.
Have you made changes to the code? Can you post your copy of "mobile-rr.ino"?

@krisajacobs
Copy link

Just did the updates myself, got all Up to Date back on everything. Still get this at compile time:

D:_PlatformIO\mobile-rr/data/
D:_PlatformIO\mobile-rr/www/
"gz|css|js"
Compiling .pioenvs\d1_mini\src\mobile-rr.ino.cpp.o
Archiving .pioenvs\d1_mini\lib9f9\libArduinoJson_ID64.a
Compiling .pioenvs\d1_mini\libf74\ESP8266WiFi\ESP8266WiFi.cpp.o
Compiling .pioenvs\d1_mini\libf74\ESP8266WiFi\ESP8266WiFiAP.cpp.o
Compiling .pioenvs\d1_mini\libf74\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o
Compiling .pioenvs\d1_mini\libf74\ESP8266WiFi\ESP8266WiFiMulti.cpp.o
Compiling .pioenvs\d1_mini\libf74\ESP8266WiFi\ESP8266WiFiSTA.cpp.o
Compiling .pioenvs\d1_mini\libf74\ESP8266WiFi\ESP8266WiFiScan.cpp.o
Compiling .pioenvs\d1_mini\libf74\ESP8266WiFi\WiFiClient.cpp.o
D:/_PlatformIO/mobile-rr/src/mobile-rr.ino:189:9: error: expected unqualified-id before string constant
}
^
D:/_PlatformIO/mobile-rr/src/mobile-rr.ino:247:3: error: '_ws_client' does not name a type
{
^
D:/_PlatformIO/mobile-rr/src/mobile-rr.ino:293:1: error: '_ws_client' does not name a type
}
^
D:/_PlatformIO/mobile-rr/src/mobile-rr.ino: In function 'void onEvent(AsyncWebSocket*, AsyncWebSocketClient*, AwsEventType, void*, uint8_t*, size_t)':
D:/_PlatformIO/mobile-rr/src/mobile-rr.ino:2351:18: error: 'ws_client' was not declared in this scope
D:/_PlatformIO/mobile-rr/src/mobile-rr.ino:2399:18: error: 'ws_client' was not declared in this scope
D:/_PlatformIO/mobile-rr/src/mobile-rr.ino:2503:18: error: 'ws_client' was not declared in this scope
D:/_PlatformIO/mobile-rr/src/mobile-rr.ino: In function 'void execCommand(AsyncWebSocketClient*, char*)':
D:/_PlatformIO/mobile-rr/src/mobile-rr.ino:2589:18: error: 'ws_client' was not declared in this scope
*** [.pioenvs\d1_mini\src\mobile-rr.ino.cpp.o] Error 1
==================================================================== [ERROR] Took 5.43 seconds ====================================================================
The terminal process terminated with exit code: 1

@krisajacobs
Copy link

I have made no modifications - I just did a fresh clone from what you've got here.

Thanks!

@BoxedBrain
Copy link
Author

Same here.

@BoxedBrain
Copy link
Author

A fresh re-download and import in pio solved the problem. Cant explain.. Thanks!

@krisajacobs
Copy link

I just did the same thing - same error for me unfortunately.

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

No branches or pull requests

3 participants