Closed johannrichard closed 12 years ago
Thanks!
24 mar 2012 kl. 23:09 skrev johannrichard:
Integrate these changes to make the Library compatible with Arduino 1.0
You can merge this Pull Request by running:
git pull https://github.com/johannrichard/Arduino-Websocket-Server master
Or you can view, comment on it, or merge it online at:
https://github.com/ejeklint/Arduino-Websocket-Server/pull/5
-- Commit Summary --
- Arduino 1.0 Fix
-- File Changes --
M WebSocket.h (6)
-- Patch Links --
https://github.com/ejeklint/Arduino-Websocket-Server/pull/5.patch https://github.com/ejeklint/Arduino-Websocket-Server/pull/5.diff
Reply to this email directly or view it on GitHub: https://github.com/ejeklint/Arduino-Websocket-Server/pull/5
Any chance this still isn't fixed? I'm getting the following errors on Arduino 1.0 and Arduino Ethernet using the Websocket_Demo.pde with no changes:
In file included from Websocket_Demo.cpp:11: /Users/zawie/Documents/Arduino/libraries/ejeklintArduinoWebsocketServer/WebSocket.h:104: error: cannot declare field 'WebSocket::socket_server' to be of abstract type 'Server' /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Server.h:4: note: because the following virtual functions are pure within 'Server': /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Print.h:48: note: virtual size_t Print::write(uint8_t) /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Server.h:6: note: virtual void Server::begin() /Users/zawie/Documents/Arduino/libraries/ejeklintArduinoWebsocketServer/WebSocket.h:105: error: cannot declare field 'WebSocket::socket_client' to be of abstract type 'Client' /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:7: note: because the following virtual functions are pure within 'Client': /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:12: note: virtual size_t Client::write(uint8_t) /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:13: note: virtual size_t Client::write(const uint8t, size_t) /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:14: note: virtual int Client::available() /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:15: note: virtual int Client::read() /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:17: note: virtual int Client::peek() /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:18: note: virtual void Client::flush() /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:10: note: virtual int Client::connect(IPAddress, uint16t) /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:11: note: virtual int Client::connect(const char, uint16_t) /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:16: note: virtual int Client::read(uint8_t*, size_t) /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:19: note: virtual void Client::stop() /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:20: note: virtual uint8_t Client::connected() /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:21: note: virtual Client::operator bool() Websocket_Demo.cpp: In function 'void setup()': Websocket_Demo.pde:-1: error: request for member 'begin' in 'websocketServer', which is of non-class type 'WebSocket ()()' Websocket_Demo.pde:-1: error: request for member 'addAction' in 'websocketServer', which is of non-class type 'WebSocket ()()' Websocket_Demo.cpp: In function 'void loop()': Websocket_Demo.pde:-1: error: request for member 'connectionRequest' in 'websocketServer', which is of non-class type 'WebSocket ()()'
Integrate these changes to make the Library compatible with Arduino 1.0