Костя Нейферт
Ученик
(114),
на голосовании
3 месяца назад
Привет всем! Начал не давно изучать ардуино, решил повторить последний проект Алекса Гайвера (фоторамка с нейросетью), тк есть все компоненты (wemos mini и tft 1.8 дисплей). При компиляции скетча выдает ошибку:
In file included from C:\Users\Lowash_\Documents\Arduino\libraries\StreamIO\src/StreamIO.h:4:0, from C:\Users\Lowash_\Documents\Arduino\libraries\GyverDB\src/GyverDB.h:4, from C:\Users\Lowash_\Documents\Arduino\libraries\GyverDB\src/GyverDBFile.h:5, from C:\Users\Lowash_\Desktop\AiFrame-main\tft1_8\db.h:2, from C:\Users\Lowash_\Desktop\AiFrame-main\tft1_8\tft1_8.ino:4: C:\Users\Lowash_\Documents\Arduino\libraries\StreamIO\src/Reader.h: In member function 'bool Reader::_waitStream()': C:\Users\Lowash_\Documents\Arduino\libraries\StreamIO\src/Reader.h:66:37: error: 'class Stream' has no member named 'getTimeout' if (++i == _stream->getTimeout()) { ^ In file included from C:\Users\Lowash_\Documents\Arduino\libraries\GyverHTTP\src/utils/Client.h:10:0, from C:\Users\Lowash_\Documents\Arduino\libraries\GyverHTTP\src/GyverHTTP.h:3, from C:\Users\Lowash_\Documents\Arduino\libraries\Kandinsky\src/Kandinsky.h:13, from C:\Users\Lowash_\Desktop\AiFrame-main\tft1_8\gen.h:2, from C:\Users\Lowash_\Desktop\AiFrame-main\tft1_8\tft1_8.ino:5: C:\Users\Lowash_\Documents\Arduino\libraries\GyverHTTP\src/StreamReader.h: In constructor 'StreamReader::StreamReader(Stream*, size_t, bool)': C:\Users\Lowash_\Documents\Arduino\libraries\GyverHTTP\src/StreamReader.h:13:153: error: 'class Stream' has no member named 'getTimeout' StreamReader(Stream* stream = nullptr, size_t len = 0, bool chunked = false) : stream(stream), _len(len), _chunked(chunked), _tout(stream ? stream->getTimeout() : READER_DEF_TOUT) {} ^ In file included from C:\Users\Lowash_\Documents\Arduino\libraries\GyverHTTP\src/GyverHTTP.h:5:0, from C:\Users\Lowash_\Documents\Arduino\libraries\Kandinsky\src/Kandinsky.h:13, from C:\Users\Lowash_\Desktop\AiFrame-main\tft1_8\gen.h:2, from C:\Users\Lowash_\Desktop\AiFrame-main\tft1_8\tft1_8.ino:5: C:\Users\Lowash_\Documents\Arduino\libraries\GyverHTTP\src/utils/Server.h: In instantiation of 'void ghttp::Server<server_t, client_t>::tick(ghttp::HeadersCollector*) [with server_t = WiFiServer; client_t = WiFiClient]': C:\Users\Lowash_\Documents\Arduino\libraries\Settings\src/SettingsGyver.h:59:21: required from here C:\Users\Lowash_\Documents\Arduino\libraries\GyverHTTP\src/utils/Server.h:20:41: error: 'class WiFiServer' has no member named 'accept' client_t client = server.accept(); ^
In file included from C:\Users\Lowash_\Documents\Arduino\libraries\StreamIO\src/StreamIO.h:4:0,
from C:\Users\Lowash_\Documents\Arduino\libraries\GyverDB\src/GyverDB.h:4,
from C:\Users\Lowash_\Documents\Arduino\libraries\GyverDB\src/GyverDBFile.h:5,
from C:\Users\Lowash_\Desktop\AiFrame-main\tft1_8\db.h:2,
from C:\Users\Lowash_\Desktop\AiFrame-main\tft1_8\tft1_8.ino:4:
C:\Users\Lowash_\Documents\Arduino\libraries\StreamIO\src/Reader.h: In member function 'bool Reader::_waitStream()':
C:\Users\Lowash_\Documents\Arduino\libraries\StreamIO\src/Reader.h:66:37: error: 'class Stream' has no member named 'getTimeout'
if (++i == _stream->getTimeout()) {
^
In file included from C:\Users\Lowash_\Documents\Arduino\libraries\GyverHTTP\src/utils/Client.h:10:0,
from C:\Users\Lowash_\Documents\Arduino\libraries\GyverHTTP\src/GyverHTTP.h:3,
from C:\Users\Lowash_\Documents\Arduino\libraries\Kandinsky\src/Kandinsky.h:13,
from C:\Users\Lowash_\Desktop\AiFrame-main\tft1_8\gen.h:2,
from C:\Users\Lowash_\Desktop\AiFrame-main\tft1_8\tft1_8.ino:5:
C:\Users\Lowash_\Documents\Arduino\libraries\GyverHTTP\src/StreamReader.h: In constructor 'StreamReader::StreamReader(Stream*, size_t, bool)':
C:\Users\Lowash_\Documents\Arduino\libraries\GyverHTTP\src/StreamReader.h:13:153: error: 'class Stream' has no member named 'getTimeout'
StreamReader(Stream* stream = nullptr, size_t len = 0, bool chunked = false) : stream(stream), _len(len), _chunked(chunked), _tout(stream ? stream->getTimeout() : READER_DEF_TOUT) {}
^
In file included from C:\Users\Lowash_\Documents\Arduino\libraries\GyverHTTP\src/GyverHTTP.h:5:0,
from C:\Users\Lowash_\Documents\Arduino\libraries\Kandinsky\src/Kandinsky.h:13,
from C:\Users\Lowash_\Desktop\AiFrame-main\tft1_8\gen.h:2,
from C:\Users\Lowash_\Desktop\AiFrame-main\tft1_8\tft1_8.ino:5:
C:\Users\Lowash_\Documents\Arduino\libraries\GyverHTTP\src/utils/Server.h: In instantiation of 'void ghttp::Server<server_t, client_t>::tick(ghttp::HeadersCollector*) [with server_t = WiFiServer; client_t = WiFiClient]':
C:\Users\Lowash_\Documents\Arduino\libraries\Settings\src/SettingsGyver.h:59:21: required from here
C:\Users\Lowash_\Documents\Arduino\libraries\GyverHTTP\src/utils/Server.h:20:41: error: 'class WiFiServer' has no member named 'accept'
client_t client = server.accept();
^
exit status 1
Compilation error: exit status 1
Ребят, что делать?