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
Ring Buffer on arduino zero. #161
Comments
it is a conflict of two types with the same name solution #27 |
Changed all RingBuffer with RingbufferW Now error are this: What is va_list ? `Arduino: 1.8.5 (Windows 10), Board: "GEVINO SAM-BA bootloader" C:\Users\x-gio\Documents\Arduino\libraries\WiFiEsp\src\utility\EspDrv.cpp: In static member function 'static int EspDrv::sendCmd(const __FlashStringHelper*, int, ...)': C:\Users\x-gio\Documents\Arduino\libraries\WiFiEsp\src\utility\EspDrv.cpp:1019:2: error: 'va_list' was not declared in this scope va_list args; ^ C:\Users\x-gio\Documents\Arduino\libraries\WiFiEsp\src\utility\EspDrv.cpp:1019:10: error: expected ';' before 'args' va_list args;
C:\Users\x-gio\Documents\Arduino\libraries\WiFiEsp\src\utility\EspDrv.cpp:1020:12: error: 'args' was not declared in this scope va_start (args, timeout);
C:\Users\x-gio\Documents\Arduino\libraries\WiFiEsp\src\utility\EspDrv.cpp:1020:25: error: 'va_start' was not declared in this scope va_start (args, timeout);
C:\Users\x-gio\Documents\Arduino\libraries\WiFiEsp\src\utility\EspDrv.cpp:1021:56: error: 'vsnprintf_P' was not declared in this scope vsnprintf_P (cmdBuf, CMD_BUFFER_SIZE, (char*)cmd, args);
C:\Users\x-gio\Documents\Arduino\libraries\WiFiEsp\src\utility\EspDrv.cpp:1022:14: error: 'va_end' was not declared in this scope va_end (args);
exit status 1 This report would have more information with |
Putting __gnuc_va_list args; solve this problem. int EspDrv::sendCmd(const __FlashStringHelper* cmd, int timeout, ...) |
I have solved all the compilation issues this way, but it seems to not Work. Changed RingBuff Class on RingBuffW How is the equivalent of Vsnprintf_P with ARM ? |
WiFi.init(&Serial); |
This exactly my change. Changed on RingBuffer.cpp & RingBuffer.h & EspDrv.cpp & EspDrv.h & Scketh But unit reboot each fiew seconds. |
Ok, no, all Work Well. Only small problem. |
AT+GMR All example work, but on all example, says always IP 0.0.0.0 |
Trying to compile for zero I have this error that I do not understand.
`Arduino: 1.8.5 (Windows 10), Board: "GEVINO SAM-BA bootloader"
In file included from C:\Users\x-gio\Documents\Arduino\libraries\WiFiEsp\src/utility/EspDrv.h:26:0,
C:\Users\x-gio\Documents\Arduino\libraries\WiFiEsp\src/utility/RingBuffer.h:23:7: error: using typedef-name 'RingBuffer' after 'class'
class RingBuffer
In file included from C:\Users\x-gio\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.19\cores\arduino/Uart.h:23:0,
C:\Users\x-gio\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.19\cores\arduino/RingBuffer.h:54:41: note: 'RingBuffer' has a previous declaration here
typedef RingBufferN<SERIAL_BUFFER_SIZE> RingBuffer;
WebServerAP:25: error: no matching function for call to 'RingBufferN<64>::RingBufferN(int)'
RingBuffer buf(8);
D:\del\WebServerAP\WebServerAP.ino:25:17: note: candidates are:
In file included from C:\Users\x-gio\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.19\cores\arduino/Uart.h:23:0,
C:\Users\x-gio\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.19\cores\arduino/RingBuffer.h:58:1: note: RingBufferN::RingBufferN() [with int N = 64]
RingBufferN::RingBufferN( void )
^
C:\Users\x-gio\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.19\cores\arduino/RingBuffer.h:58:1: note: candidate expects 0 arguments, 1 provided
C:\Users\x-gio\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.19\cores\arduino/RingBuffer.h:33:7: note: constexpr RingBufferN<64>::RingBufferN(const RingBufferN<64>&)
class RingBufferN
C:\Users\x-gio\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.19\cores\arduino/RingBuffer.h:33:7: note: no known conversion for argument 1 from 'int' to 'const RingBufferN<64>&'
C:\Users\x-gio\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.19\cores\arduino/RingBuffer.h:33:7: note: constexpr RingBufferN<64>::RingBufferN(RingBufferN<64>&&)
C:\Users\x-gio\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.19\cores\arduino/RingBuffer.h:33:7: note: no known conversion for argument 1 from 'int' to 'RingBufferN<64>&&'
D:\del\WebServerAP\WebServerAP.ino: In function 'void loop()':
WebServerAP:64: error: 'RingBuffer' has no member named 'init'
WebServerAP:68: error: 'RingBuffer' has no member named 'push'
WebServerAP:72: error: 'RingBuffer' has no member named 'endsWith'
exit status 1
no matching function for call to 'RingBufferN<64>::RingBufferN(int)'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
`
The text was updated successfully, but these errors were encountered: