Advertisement
Guest User

Untitled

a guest
Feb 10th, 2022
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.66 KB | None | 0 0
  1. src/BrewLogger.h:38:18: error: no matching function for call to 'BrewLogger::TwoWire::TwoWire()'
  2. In file included from src/ui.h:18:0,
  3. from src/BrewManiac.cpp:353:
  4. /home/name/.platformio/packages/framework-arduinoespressif32/libraries/Wire/src/Wire.h:68:5: note: candidate: BrewLogger::TwoWire::TwoWire(uint8_t)
  5. TwoWire(uint8_t bus_num);
  6. ^
  7. /home/name/.platformio/packages/framework-arduinoespressif32/libraries/Wire/src/Wire.h:68:5: note: candidate expects 1 argument, 0 provided
  8. /home/name/.platformio/packages/framework-arduinoespressif32/libraries/Wire/src/Wire.h:38:7: note: candidate: constexpr BrewLogger::TwoWire::TwoWire(const BrewLogger::TwoWire&)
  9. class TwoWire: public Stream
  10. ^
  11. /home/name/.platformio/packages/framework-arduinoespressif32/libraries/Wire/src/Wire.h:38:7: note: candidate expects 1 argument, 0 provided
  12. In file included from src/BrewManiac.cpp:34:0:
  13. src/BrewLogger.h:38:18: error: no matching function for call to 'BrewLogger::TwoWire::TwoWire()'
  14. BrewLogger(void){
  15. ^
  16. In file included from src/ui.h:18:0,
  17. from src/BrewManiac.cpp:353:
  18. /home/name/.platformio/packages/framework-arduinoespressif32/libraries/Wire/src/Wire.h:68:5: note: candidate: BrewLogger::TwoWire::TwoWire(uint8_t)
  19. TwoWire(uint8_t bus_num);
  20. ^
  21. /home/name/.platformio/packages/framework-arduinoespressif32/libraries/Wire/src/Wire.h:68:5: note: candidate expects 1 argument, 0 provided
  22. /home/name/.platformio/packages/framework-arduinoespressif32/libraries/Wire/src/Wire.h:38:7: note: candidate: constexpr BrewLogger::TwoWire::TwoWire(const BrewLogger::TwoWire&)
  23. class TwoWire: public Stream
  24. ^
  25. /home/name/.platformio/packages/framework-arduinoespressif32/libraries/Wire/src/Wire.h:38:7: note: candidate expects 1 argument, 0 provided
  26. In file included from src/BrewManiac.cpp:34:0:
  27. src/BrewLogger.h: In member function 'void BrewLogger::endSession()':
  28. src/BrewLogger.h:128:29: error: 'newLogFileIndex' was not declared in this scope
  29. int fidx=newLogFileIndex();
  30. ^
  31. In file included from src/BrewManiac.cpp:34:0:
  32. src/BrewLogger.h: In member function 'FileInfo* BrewLogger::getLogFileInfo()':
  33. src/BrewLogger.h:243:15: error: 'loadIdxFile' was not declared in this scope
  34. loadIdxFile();
  35. ^
  36. src/BrewLogger.h: In member function 'void BrewLogger::startLog(bool)':
  37. src/BrewLogger.h:299:35: error: 'writeToFile' was not declared in this scope
  38. writeToFile(_logBuffer,_logIndex);
  39. ^
  40. src/BrewLogger.h: In member function 'void BrewLogger::addSetPoint()':
  41. src/BrewLogger.h:331:20: error: 'writeToFile' was not declared in this scope
  42. writeToFile(ptr,4);
  43. ^
  44. src/BrewLogger.h: In member function 'void BrewLogger::addTemperature(float)':
  45. src/BrewLogger.h:349:20: error: 'writeToFile' was not declared in this scope
  46. writeToFile(ptr,2);
  47. ^
  48. src/BrewLogger.h: In member function 'void BrewLogger::addEvent(byte)':
  49. src/BrewLogger.h:358:20: error: 'writeToFile' was not declared in this scope
  50. writeToFile(ptr,2);
  51. ^
  52. src/BrewLogger.h: In member function 'void BrewLogger::addStage(byte)':
  53. src/BrewLogger.h:368:20: error: 'writeToFile' was not declared in this scope
  54. writeToFile(ptr,2);
  55. ^
  56. src/BrewLogger.h: In member function 'void BrewLogger::addResumeTag()':
  57. src/BrewLogger.h:378:21: error: 'writeToFile' was not declared in this scope
  58. writeToFile(ptr,2);
  59. ^
  60. src/BrewLogger.h: In member function 'void BrewLogger::processSavedData(char*, size_t)':
  61. src/BrewLogger.h:480:2: error: a function-definition is not allowed here before '{' token
  62. {
  63. ^
  64. src/BrewLogger.h:488:2: error: a function-definition is not allowed here before '{' token
  65. {
  66. ^
  67. src/BrewLogger.h:554:1: error: expected '}' at end of input
  68. };
  69. ^
  70. In file included from src/BrewManiac.cpp:353:0:
  71. src/ui.h: In member function 'void BrewLogger::uiLcdAssignSymbol(byte, BrewLogger::SymbolId)':
  72. src/ui.h:370:69: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  73. #define CreatecCustomChar(buff,idx,bm) uiGetBitmap((byte*)buff,bm); lcd.createChar(idx,(byte*)buff)
  74. ^
  75. src/ui.h:387:2: note: in expansion of macro 'CreatecCustomChar'
  76. CreatecCustomChar(buffer,sid,bitmap);
  77. ^
  78. src/ui.h: In member function 'void BrewLogger::uiScanLcdAddress()':
  79. src/ui.h:404:5: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  80. lcd.updateAddress(address);
  81. ^
  82. src/ui.h: In member function 'void BrewLogger::uiLcdPrint(byte, byte, char*)':
  83. src/ui.h:413:2: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  84. lcd.setCursor(col,row);
  85. ^
  86. src/ui.h:418:3: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  87. lcd.write(*p);
  88. ^
  89. src/ui.h: In member function 'void BrewLogger::uiLcdClear(byte, byte, byte)':
  90. src/ui.h:437:2: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  91. lcd.setCursor(col,row);
  92. ^
  93. src/ui.h:439:3: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  94. lcd.write(' ');
  95. ^
  96. src/ui.h: In member function 'void BrewLogger::uiLcdClearAll()':
  97. src/ui.h:448:2: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  98. lcd.clear();
  99. ^
  100. src/ui.h: In member function 'void BrewLogger::uiLcdLine(byte, byte, byte)':
  101. src/ui.h:454:2: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  102. lcd.setCursor(col,row);
  103. ^
  104. src/ui.h:456:3: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  105. lcd.write('-');
  106. ^
  107. src/ui.h: In member function 'void BrewLogger::uiLcdDrawSymbol(byte, byte, byte)':
  108. src/ui.h:465:2: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  109. lcd.setCursor(col,row);
  110. ^
  111. src/ui.h:466:2: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  112. lcd.write((char)sid);
  113. ^
  114. src/ui.h: In member function 'void BrewLogger::uiLcdDrawSymbolBmp(byte, byte, BrewLogger::SymbolId)':
  115. src/ui.h:370:69: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  116. #define CreatecCustomChar(buff,idx,bm) uiGetBitmap((byte*)buff,bm); lcd.createChar(idx,(byte*)buff)
  117. ^
  118. src/ui.h:476:5: note: in expansion of macro 'CreatecCustomChar'
  119. CreatecCustomChar(buffer,LcdCharReserved,bitmap);
  120. ^
  121. src/ui.h:477:2: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  122. lcd.setCursor(col,row);
  123. ^
  124. src/ui.h:478:2: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  125. lcd.write(LcdCharReserved);
  126. ^
  127. src/ui.h: In member function 'void BrewLogger::uiLcdInitialize()':
  128. src/ui.h:490:2: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  129. lcd.begin(20,4);
  130. ^
  131. src/ui.h: In member function 'void BrewLogger::refreshLcdDisplay()':
  132. src/ui.h:495:2: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  133. lcd.begin(20,4);
  134. ^
  135. src/ui.h:496:2: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  136. lcd.clear();
  137. ^
  138. src/ui.h:499:3: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  139. lcd.setCursor(0,i);
  140. ^
  141. src/ui.h:502:5: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  142. lcd.write(_lcdBuffer[i][j]);
  143. ^
  144. src/ui.h:370:69: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  145. #define CreatecCustomChar(buff,idx,bm) uiGetBitmap((byte*)buff,bm); lcd.createChar(idx,(byte*)buff)
  146. ^
  147. src/ui.h:509:9: note: in expansion of macro 'CreatecCustomChar'
  148. CreatecCustomChar(buffer,LcdCharReserved,bitmap);
  149. ^
  150. src/ui.h:510:6: error: '((BrewLogger*)this)->BrewLogger::lcd' does not have class type
  151. lcd.write(LcdCharReserved);
  152. ^
  153. In file included from .pio/libdeps/esp32-dev/ArduinoJson/src/ArduinoJson/Array/../Variant/VariantData.hpp:8:0,
  154. from .pio/libdeps/esp32-dev/ArduinoJson/src/ArduinoJson/Array/ArrayRef.hpp:7,
  155. from .pio/libdeps/esp32-dev/ArduinoJson/src/ArduinoJson.hpp:17,
  156. from .pio/libdeps/esp32-dev/ArduinoJson/src/ArduinoJson.h:9,
  157. from src/BrewManiacWeb.h:6,
  158. from src/wi.h:8,
  159. from src/BrewManiac.cpp:355:
  160. .pio/libdeps/esp32-dev/ArduinoJson/src/ArduinoJson/Array/../Variant/../Numbers/convertNumber.hpp: At global scope:
  161. .pio/libdeps/esp32-dev/ArduinoJson/src/ArduinoJson/Array/../Variant/../Numbers/convertNumber.hpp:12:28: error: expected unqualified-id before end of line
  162. .pio/libdeps/esp32-dev/ArduinoJson/src/ArduinoJson/Array/../Variant/../Numbers/convertNumber.hpp:12:28: error: expected declaration before end of line
  163. *** [.pio/build/esp32-dev/src/BrewManiac.cpp.o] Error 1
  164. In file included from src/BrewManiacEx.cpp:53:0:
  165. src/BrewLogger.h:556:19: error: storage class specified for 'brewLogger'
  166. extern BrewLogger brewLogger;
  167. ^
  168. src/BrewLogger.h:556:19: error: field 'brewLogger' has incomplete type 'BrewLogger'
  169. In file included from src/BrewManiacEx.cpp:53:0:
  170. src/BrewLogger.h:34:7: note: definition of 'class BrewLogger' is not complete until the closing brace
  171. class BrewLogger
  172. ^
  173. src/BrewManiacEx.cpp:56:30: error: storage class specified for 'brewmaniac_setup'
  174. extern bool brewmaniac_setup();
  175. ^
  176. src/BrewManiacEx.cpp:58:29: error: storage class specified for 'brewmaniac_loop'
  177. extern void brewmaniac_loop();
  178. ^
  179. src/BrewManiacEx.cpp:60:33: error: storage class specified for 'startBrewManiac'
  180. extern void startBrewManiac(void);
  181. ^
  182. src/BrewManiacEx.cpp:62:58: error: storage class specified for 'getContentType'
  183. extern const String getContentType(const String& filename);
  184. ^
  185. src/BrewManiacEx.cpp:125:23: error: expected identifier before numeric constant
  186. AsyncWebServer server(80);
  187. ^
  188. src/BrewManiacEx.cpp:125:23: error: expected ',' or '...' before numeric constant
  189. src/BrewManiacEx.cpp:130:12: error: field 'brewLogger' has incomplete type 'BrewLogger'
  190. BrewLogger brewLogger;
  191. ^
  192. In file included from src/BrewManiacEx.cpp:53:0:
  193. src/BrewLogger.h:34:7: note: definition of 'class BrewLogger' is not complete until the closing brace
  194. class BrewLogger
  195. ^
  196. src/BrewManiacEx.cpp:130:12: error: redeclaration of '<typeprefixerror>BrewLogger::brewLogger'
  197. BrewLogger brewLogger;
  198. ^
  199. In file included from src/BrewManiacEx.cpp:53:0:
  200. src/BrewLogger.h:556:19: note: previous declaration '<typeprefixerror>BrewLogger::brewLogger'
  201. extern BrewLogger brewLogger;
  202. ^
  203. src/BrewManiacEx.cpp:139:90: error: storage class specified for 'getEmbeddedFile'
  204. extern const uint8_t* getEmbeddedFile(const char* filename,bool &gzip, unsigned int &size);
  205. ^
  206. src/BrewManiacEx.cpp:68:18: error: expected identifier before string constant
  207. #define WS_PATH "/ws"
  208. ^
  209. src/BrewManiacEx.cpp:1037:19: note: in expansion of macro 'WS_PATH'
  210. AsyncWebSocket ws(WS_PATH);
  211. ^
  212. src/BrewManiacEx.cpp:68:18: error: expected ',' or '...' before string constant
  213. #define WS_PATH "/ws"
  214. ^
  215. src/BrewManiacEx.cpp:1037:19: note: in expansion of macro 'WS_PATH'
  216. AsyncWebSocket ws(WS_PATH);
  217. ^
  218. src/BrewManiacEx.cpp:1039:53: error: storage class specified for 'printSensorAddress'
  219. extern void printSensorAddress(char *buf, byte *addr);
  220. ^
  221. In file included from src/BrewManiacEx.cpp:32:0:
  222. src/config.h:186:29: error: expected identifier before string constant
  223. #define FIRMWARE_UPDATE_URL "http://brew.vito.tw/bmeupdate.php?info"
  224. ^
  225. src/BrewManiacEx.cpp:1396:37: note: in expansion of macro 'FIRMWARE_UPDATE_URL'
  226. HttpUpdateHandler httpUpdateHandler(FIRMWARE_UPDATE_URL);
  227. ^
  228. src/config.h:186:29: error: expected ',' or '...' before string constant
  229. #define FIRMWARE_UPDATE_URL "http://brew.vito.tw/bmeupdate.php?info"
  230. ^
  231. src/BrewManiacEx.cpp:1396:37: note: in expansion of macro 'FIRMWARE_UPDATE_URL'
  232. HttpUpdateHandler httpUpdateHandler(FIRMWARE_UPDATE_URL);
  233. ^
  234. src/BrewManiacEx.cpp:1602:22: error: 'long unsigned int BrewLogger::_time' conflicts with a previous declaration
  235. static unsigned long _time;
  236. ^
  237. In file included from src/BrewManiacEx.cpp:53:0:
  238. src/BrewLogger.h:258:11: note: previous declaration 'uint32_t BrewLogger::_time'
  239. uint32_t _time;
  240. ^
  241. src/BrewManiacEx.cpp:1604:6: error: 'void BrewLogger::requestRestart(bool)' cannot be overloaded
  242. void requestRestart(bool disc)
  243. ^
  244. src/BrewManiacEx.cpp:465:6: error: with 'void BrewLogger::requestRestart(bool)'
  245. void requestRestart(bool disc);
  246. ^
  247. src/BrewManiacEx.cpp:1666:1: error: expected '}' at end of input
  248. }
  249. ^
  250. In file included from src/BrewManiacEx.cpp:53:0:
  251. src/BrewLogger.h: In member function 'void BrewLogger::endSession()':
  252. src/BrewLogger.h:128:29: error: 'newLogFileIndex' was not declared in this scope
  253. int fidx=newLogFileIndex();
  254. ^
  255. In file included from src/BrewManiacEx.cpp:53:0:
  256. src/BrewLogger.h: In member function 'FileInfo* BrewLogger::getLogFileInfo()':
  257. src/BrewLogger.h:243:15: error: 'loadIdxFile' was not declared in this scope
  258. loadIdxFile();
  259. ^
  260. src/BrewLogger.h: In member function 'void BrewLogger::startLog(bool)':
  261. src/BrewLogger.h:299:35: error: 'writeToFile' was not declared in this scope
  262. writeToFile(_logBuffer,_logIndex);
  263. ^
  264. src/BrewLogger.h: In member function 'void BrewLogger::addSetPoint()':
  265. src/BrewLogger.h:331:20: error: 'writeToFile' was not declared in this scope
  266. writeToFile(ptr,4);
  267. ^
  268. src/BrewLogger.h: In member function 'void BrewLogger::addTemperature(float)':
  269. src/BrewLogger.h:349:20: error: 'writeToFile' was not declared in this scope
  270. writeToFile(ptr,2);
  271. ^
  272. src/BrewLogger.h: In member function 'void BrewLogger::addEvent(byte)':
  273. src/BrewLogger.h:358:20: error: 'writeToFile' was not declared in this scope
  274. writeToFile(ptr,2);
  275. ^
  276. src/BrewLogger.h: In member function 'void BrewLogger::addStage(byte)':
  277. src/BrewLogger.h:368:20: error: 'writeToFile' was not declared in this scope
  278. writeToFile(ptr,2);
  279. ^
  280. src/BrewLogger.h: In member function 'void BrewLogger::addResumeTag()':
  281. src/BrewLogger.h:378:21: error: 'writeToFile' was not declared in this scope
  282. writeToFile(ptr,2);
  283. ^
  284. src/BrewLogger.h: In member function 'void BrewLogger::processSavedData(char*, size_t)':
  285. src/BrewLogger.h:480:2: error: a function-definition is not allowed here before '{' token
  286. {
  287. ^
  288. src/BrewLogger.h:488:2: error: a function-definition is not allowed here before '{' token
  289. {
  290. ^
  291. src/BrewLogger.h:554:1: error: expected '}' at end of input
  292. };
  293. ^
  294. src/BrewManiacEx.cpp: In member function 'void BrewLogger::RecipeFileHandler::listDirectory(const String&, String&)':
  295. src/BrewManiacEx.cpp:227:14: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  296. File dir = FileSystem.open(path);
  297. ^
  298. src/BrewManiacEx.cpp:116:17: note: declared here
  299. FS& FileSystem =SPIFFS;
  300. ^
  301. src/BrewManiacEx.cpp: In member function 'virtual void BrewLogger::RecipeFileHandler::handleRequest(AsyncWebServerRequest*)':
  302. src/BrewManiacEx.cpp:275:6: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  303. FileSystem.remove(file.c_str());
  304. ^
  305. src/BrewManiacEx.cpp:116:17: note: declared here
  306. FS& FileSystem =SPIFFS;
  307. ^
  308. src/BrewManiacEx.cpp:276:29: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  309. requestSend(request,200);
  310. ^
  311. src/BrewManiacEx.cpp:279:29: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  312. requestSend(request,400);
  313. ^
  314. src/BrewManiacEx.cpp:283:28: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  315. requestSend(request,400);
  316. ^
  317. src/BrewManiacEx.cpp:289:10: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  318. if( FileSystem.exists(file)){
  319. ^
  320. src/BrewManiacEx.cpp:116:17: note: declared here
  321. FS& FileSystem =SPIFFS;
  322. ^
  323. src/BrewManiacEx.cpp:291:30: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  324. requestSend(request,200);
  325. ^
  326. src/BrewManiacEx.cpp:294:30: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  327. requestSend(request,500);
  328. ^
  329. src/BrewManiacEx.cpp:297:29: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  330. requestSend(request,401);
  331. ^
  332. src/BrewManiacEx.cpp:302:28: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  333. requestSend(request,404);
  334. ^
  335. src/BrewManiacEx.cpp:311:54: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  336. requestSend(request,200, "application/json",list);
  337. ^
  338. src/BrewManiacEx.cpp:314:29: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  339. requestSend(request,401);
  340. ^
  341. src/BrewManiacEx.cpp:316:28: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  342. requestSend(request,400);
  343. ^
  344. src/BrewManiacEx.cpp:321:24: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  345. requestSend(request,FileSystem,request->url());
  346. ^
  347. src/BrewManiacEx.cpp:116:17: note: declared here
  348. FS& FileSystem =SPIFFS;
  349. ^
  350. src/BrewManiacEx.cpp: In member function 'virtual void BrewLogger::RecipeFileHandler::handleUpload(AsyncWebServerRequest*, const String&, size_t, uint8_t*, size_t, bool)':
  351. src/BrewManiacEx.cpp:330:32: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  352. request->_tempFile = FileSystem.open(file, "w");
  353. ^
  354. src/BrewManiacEx.cpp:116:17: note: declared here
  355. FS& FileSystem =SPIFFS;
  356. ^
  357. src/BrewManiacEx.cpp: In member function 'virtual bool BrewLogger::RecipeFileHandler::canHandle(AsyncWebServerRequest*)':
  358. src/BrewManiacEx.cpp:354:13: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  359. return FileSystem.exists(request->url());
  360. ^
  361. src/BrewManiacEx.cpp:116:17: note: declared here
  362. FS& FileSystem =SPIFFS;
  363. ^
  364. src/BrewManiacEx.cpp:356:12: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  365. return FileSystem.exists(request->url());
  366. ^
  367. src/BrewManiacEx.cpp:116:17: note: declared here
  368. FS& FileSystem =SPIFFS;
  369. ^
  370. src/BrewManiacEx.cpp: In member function 'virtual void BrewLogger::TemperatureLogHandler::handleRequest(AsyncWebServerRequest*)':
  371. src/BrewManiacEx.cpp:380:5: error: invalid use of non-static data member 'BrewLogger::brewLogger'
  372. brewLogger.createFilename(buf,index);
  373. ^
  374. In file included from src/BrewManiacEx.cpp:53:0:
  375. src/BrewLogger.h:556:19: note: declared here
  376. extern BrewLogger brewLogger;
  377. ^
  378. src/BrewManiacEx.cpp:381:8: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  379. if(FileSystem.exists(buf)){
  380. ^
  381. src/BrewManiacEx.cpp:116:17: note: declared here
  382. FS& FileSystem =SPIFFS;
  383. ^
  384. src/BrewManiacEx.cpp:382:26: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  385. requestSend(request,FileSystem,buf,"application/octet-stream");
  386. ^
  387. src/BrewManiacEx.cpp:116:17: note: declared here
  388. FS& FileSystem =SPIFFS;
  389. ^
  390. src/BrewManiacEx.cpp:384:29: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  391. requestSend(request,404);
  392. ^
  393. src/BrewManiacEx.cpp:388:20: error: invalid use of non-static data member 'BrewLogger::brewLogger'
  394. FileInfo* list=brewLogger.getLogFileInfo();
  395. ^
  396. In file included from src/BrewManiacEx.cpp:53:0:
  397. src/BrewLogger.h:556:19: note: declared here
  398. extern BrewLogger brewLogger;
  399. ^
  400. src/BrewManiacEx.cpp:403:54: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  401. requestSend(request,200, "application/json;",json);
  402. ^
  403. src/BrewManiacEx.cpp:414:15: error: invalid use of non-static data member 'BrewLogger::brewLogger'
  404. size_t size=brewLogger.beginCopyAfter(offset);
  405. ^
  406. In file included from src/BrewManiacEx.cpp:53:0:
  407. src/BrewLogger.h:556:19: note: declared here
  408. extern BrewLogger brewLogger;
  409. ^
  410. src/BrewManiacEx.cpp: In lambda function:
  411. src/BrewManiacEx.cpp:417:12: error: invalid use of non-static data member 'BrewLogger::brewLogger'
  412. return brewLogger.read(buffer, maxLen,index);
  413. ^
  414. In file included from src/BrewManiacEx.cpp:53:0:
  415. src/BrewLogger.h:556:19: note: declared here
  416. extern BrewLogger brewLogger;
  417. ^
  418. src/BrewManiacEx.cpp: In member function 'virtual void BrewLogger::TemperatureLogHandler::handleRequest(AsyncWebServerRequest*)':
  419. src/BrewManiacEx.cpp:419:32: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, AsyncWebServerResponse*)' without object
  420. requestSend(request,response);
  421. ^
  422. src/BrewManiacEx.cpp:421:27: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  423. requestSend(request,204);
  424. ^
  425. src/BrewManiacEx.cpp: In member function 'void BrewLogger::NetworkConfig::configString(String&)':
  426. src/BrewManiacEx.cpp:476:17: error: invalid use of non-static data member 'BrewLogger::_gHostname'
  427. doc["host"] = _gHostname;
  428. ^
  429. src/BrewManiacEx.cpp:108:30: note: declared here
  430. char _gHostname[MaxNameLength];
  431. ^
  432. src/BrewManiacEx.cpp:477:16: error: invalid use of non-static data member 'BrewLogger::_gUsername'
  433. doc["user"] =_gUsername;
  434. ^
  435. src/BrewManiacEx.cpp:109:30: note: declared here
  436. char _gUsername[MaxNameLength];
  437. ^
  438. src/BrewManiacEx.cpp:478:16: error: invalid use of non-static data member 'BrewLogger::_gPassword'
  439. doc["pass"] =_gPassword;
  440. ^
  441. src/BrewManiacEx.cpp:110:30: note: declared here
  442. char _gPassword[MaxNameLength];
  443. ^
  444. src/BrewManiacEx.cpp:479:20: error: invalid use of non-static data member 'BrewLogger::_gSecuredAccess'
  445. doc["secured"] = _gSecuredAccess? 1:0;
  446. ^
  447. src/BrewManiacEx.cpp:111:6: note: declared here
  448. bool _gSecuredAccess;
  449. ^
  450. src/BrewManiacEx.cpp: In member function 'bool BrewLogger::NetworkConfig::saveConfig()':
  451. src/BrewManiacEx.cpp:493:15: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  452. File config=FileSystem.open(CONFIG_FILENAME,"w+");
  453. ^
  454. src/BrewManiacEx.cpp:116:17: note: declared here
  455. FS& FileSystem =SPIFFS;
  456. ^
  457. src/BrewManiacEx.cpp: In member function 'void BrewLogger::NetworkConfig::handleNetworkDisconnect(AsyncWebServerRequest*)':
  458. src/BrewManiacEx.cpp:511:26: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  459. requestSend(request,200);
  460. ^
  461. src/BrewManiacEx.cpp: In member function 'void BrewLogger::NetworkConfig::handleNetCfg(AsyncWebServerRequest*)':
  462. src/BrewManiacEx.cpp:531:28: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  463. requestSend(request,404);
  464. ^
  465. src/BrewManiacEx.cpp:535:16: error: invalid use of non-static data member 'BrewLogger::_gUsername'
  466. || (strcmp(_gUsername,root["user"]) !=0)
  467. ^
  468. src/BrewManiacEx.cpp:109:30: note: declared here
  469. char _gUsername[MaxNameLength];
  470. ^
  471. src/BrewManiacEx.cpp:536:16: error: invalid use of non-static data member 'BrewLogger::_gPassword'
  472. || (strcmp(_gPassword,root["pass"]) !=0) ){
  473. ^
  474. src/BrewManiacEx.cpp:110:30: note: declared here
  475. char _gPassword[MaxNameLength];
  476. ^
  477. src/BrewManiacEx.cpp:538:29: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  478. requestSend(request,400);
  479. ^
  480. src/BrewManiacEx.cpp:542:24: error: cannot call member function 'void BrewLogger::requestRestart(bool)' without object
  481. requestRestart(true);
  482. ^
  483. src/BrewManiacEx.cpp:543:30: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  484. requestSend(request,200);
  485. ^
  486. src/BrewManiacEx.cpp:548:12: error: invalid use of non-static data member 'BrewLogger::_gHostname'
  487. strcpy(_gHostname,root["host"]);
  488. ^
  489. src/BrewManiacEx.cpp:108:30: note: declared here
  490. char _gHostname[MaxNameLength];
  491. ^
  492. src/BrewManiacEx.cpp:552:12: error: invalid use of non-static data member 'BrewLogger::_gUsername'
  493. strcpy(_gUsername,root["nuser"]);
  494. ^
  495. src/BrewManiacEx.cpp:109:30: note: declared here
  496. char _gUsername[MaxNameLength];
  497. ^
  498. src/BrewManiacEx.cpp:556:12: error: invalid use of non-static data member 'BrewLogger::_gPassword'
  499. strcpy(_gPassword,root["npass"]);
  500. ^
  501. src/BrewManiacEx.cpp:110:30: note: declared here
  502. char _gPassword[MaxNameLength];
  503. ^
  504. src/BrewManiacEx.cpp:561:5: error: invalid use of non-static data member 'BrewLogger::_gSecuredAccess'
  505. _gSecuredAccess =( 0 != value);
  506. ^
  507. src/BrewManiacEx.cpp:111:6: note: declared here
  508. bool _gSecuredAccess;
  509. ^
  510. src/BrewManiacEx.cpp:565:28: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  511. requestSend(request,200);
  512. ^
  513. src/BrewManiacEx.cpp:567:28: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  514. requestSend(request,500);
  515. ^
  516. src/BrewManiacEx.cpp:571:7: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  517. if(FileSystem.exists(CONFIG_FILENAME)){
  518. ^
  519. src/BrewManiacEx.cpp:116:17: note: declared here
  520. FS& FileSystem =SPIFFS;
  521. ^
  522. src/BrewManiacEx.cpp:572:25: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  523. requestSend(request,FileSystem,CONFIG_FILENAME, "application/json");
  524. ^
  525. src/BrewManiacEx.cpp:116:17: note: declared here
  526. FS& FileSystem =SPIFFS;
  527. ^
  528. src/BrewManiacEx.cpp:576:52: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  529. requestSend(request,200, "application/json",rsp);
  530. ^
  531. src/BrewManiacEx.cpp: In member function 'void BrewLogger::NetworkConfig::loadSetting()':
  532. src/BrewManiacEx.cpp:591:11: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  533. File fh=FileSystem.open(CONFIG_FILENAME,"r+");
  534. ^
  535. src/BrewManiacEx.cpp:116:17: note: declared here
  536. FS& FileSystem =SPIFFS;
  537. ^
  538. src/BrewManiacEx.cpp:625:13: error: invalid use of non-static data member 'BrewLogger::_gHostname'
  539. strcpy(_gHostname,Default_HOSTNAME);
  540. ^
  541. src/BrewManiacEx.cpp:108:30: note: declared here
  542. char _gHostname[MaxNameLength];
  543. ^
  544. src/BrewManiacEx.cpp:626:13: error: invalid use of non-static data member 'BrewLogger::_gUsername'
  545. strcpy(_gUsername,Default_USERNAME);
  546. ^
  547. src/BrewManiacEx.cpp:109:30: note: declared here
  548. char _gUsername[MaxNameLength];
  549. ^
  550. src/BrewManiacEx.cpp:627:13: error: invalid use of non-static data member 'BrewLogger::_gPassword'
  551. strcpy(_gPassword,Default_PASSWORD);
  552. ^
  553. src/BrewManiacEx.cpp:110:30: note: declared here
  554. char _gPassword[MaxNameLength];
  555. ^
  556. src/BrewManiacEx.cpp:628:4: error: invalid use of non-static data member 'BrewLogger::_gSecuredAccess'
  557. _gSecuredAccess=false;
  558. ^
  559. src/BrewManiacEx.cpp:111:6: note: declared here
  560. bool _gSecuredAccess;
  561. ^
  562. src/BrewManiacEx.cpp:634:13: error: invalid use of non-static data member 'BrewLogger::_gHostname'
  563. strcpy(_gHostname,root["host"].as<String>().c_str());
  564. ^
  565. src/BrewManiacEx.cpp:108:30: note: declared here
  566. char _gHostname[MaxNameLength];
  567. ^
  568. src/BrewManiacEx.cpp:635:13: error: invalid use of non-static data member 'BrewLogger::_gUsername'
  569. strcpy(_gUsername,root["user"].as<String>().c_str());
  570. ^
  571. src/BrewManiacEx.cpp:109:30: note: declared here
  572. char _gUsername[MaxNameLength];
  573. ^
  574. src/BrewManiacEx.cpp:636:13: error: invalid use of non-static data member 'BrewLogger::_gPassword'
  575. strcpy(_gPassword,root["pass"].as<String>().c_str());
  576. ^
  577. src/BrewManiacEx.cpp:110:30: note: declared here
  578. char _gPassword[MaxNameLength];
  579. ^
  580. src/BrewManiacEx.cpp:637:6: error: invalid use of non-static data member 'BrewLogger::_gSecuredAccess'
  581. _gSecuredAccess=(root.containsKey("secured"))? (bool)(root["secured"]):false;
  582. ^
  583. src/BrewManiacEx.cpp:111:6: note: declared here
  584. bool _gSecuredAccess;
  585. ^
  586. src/BrewManiacEx.cpp:643:81: error: cannot call member function 'IPAddress BrewLogger::scanIP(const char*)' without object
  587. IPAddress ip=root.containsKey("ip")? scanIP(root["ip"].as<String>().c_str()):INADDR_NONE;
  588. ^
  589. src/BrewManiacEx.cpp:644:81: error: cannot call member function 'IPAddress BrewLogger::scanIP(const char*)' without object
  590. IPAddress gw=root.containsKey("gw")? scanIP(root["gw"].as<String>().c_str()):INADDR_NONE;
  591. ^
  592. src/BrewManiacEx.cpp:645:81: error: cannot call member function 'IPAddress BrewLogger::scanIP(const char*)' without object
  593. IPAddress nm=root.containsKey("nm")? scanIP(root["nm"].as<String>().c_str()):INADDR_NONE;
  594. ^
  595. src/BrewManiacEx.cpp: In member function 'bool BrewLogger::FileReader::prepare(String, int, int)':
  596. src/BrewManiacEx.cpp:677:11: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  597. _file = FileSystem.open(filename, "r+");
  598. ^
  599. src/BrewManiacEx.cpp:116:17: note: declared here
  600. FS& FileSystem =SPIFFS;
  601. ^
  602. src/BrewManiacEx.cpp: In member function 'virtual void BrewLogger::BmwHandler::handleRequest(AsyncWebServerRequest*)':
  603. src/BrewManiacEx.cpp:726:6: error: invalid use of non-static data member 'BrewLogger::_gSecuredAccess'
  604. if(_gSecuredAccess && !request->authenticate(_gUsername, _gPassword))
  605. ^
  606. src/BrewManiacEx.cpp:111:6: note: declared here
  607. bool _gSecuredAccess;
  608. ^
  609. src/BrewManiacEx.cpp:726:48: error: invalid use of non-static data member 'BrewLogger::_gUsername'
  610. if(_gSecuredAccess && !request->authenticate(_gUsername, _gPassword))
  611. ^
  612. src/BrewManiacEx.cpp:109:30: note: declared here
  613. char _gUsername[MaxNameLength];
  614. ^
  615. src/BrewManiacEx.cpp:726:60: error: invalid use of non-static data member 'BrewLogger::_gPassword'
  616. if(_gSecuredAccess && !request->authenticate(_gUsername, _gPassword))
  617. ^
  618. src/BrewManiacEx.cpp:110:30: note: declared here
  619. char _gPassword[MaxNameLength];
  620. ^
  621. src/BrewManiacEx.cpp:733:29: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  622. requestSend(request,200);
  623. ^
  624. src/BrewManiacEx.cpp:735:33: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  625. else requestSend(request,400);
  626. ^
  627. src/BrewManiacEx.cpp:738:5: error: invalid use of non-static data member 'BrewLogger::bmWeb'
  628. bmWeb.getSettings(setting);
  629. ^
  630. src/BrewManiacEx.cpp:127:15: note: declared here
  631. BrewManiacWeb bmWeb;
  632. ^
  633. src/BrewManiacEx.cpp:740:54: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  634. requestSend(request,200, "application/json", json);
  635. ^
  636. src/BrewManiacEx.cpp:753:5: error: invalid use of non-static data member 'BrewLogger::bmWeb'
  637. bmWeb.getAutomation(autojson);
  638. ^
  639. src/BrewManiacEx.cpp:127:15: note: declared here
  640. BrewManiacWeb bmWeb;
  641. ^
  642. src/BrewManiacEx.cpp:757:54: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  643. requestSend(request,200, "application/json", json);
  644. ^
  645. src/BrewManiacEx.cpp:762:6: error: invalid use of non-static data member 'BrewLogger::bmWeb'
  646. bmWeb.sendButton(code & 0xF, (code & 0xF0)!=0);
  647. ^
  648. src/BrewManiacEx.cpp:127:15: note: declared here
  649. BrewManiacWeb bmWeb;
  650. ^
  651. src/BrewManiacEx.cpp:763:29: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  652. requestSend(request,200);
  653. ^
  654. src/BrewManiacEx.cpp:765:29: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  655. requestSend(request,400);
  656. ^
  657. src/BrewManiacEx.cpp:771:8: error: invalid use of non-static data member 'BrewLogger::bmWeb'
  658. if(bmWeb.updateAutomation(data)){
  659. ^
  660. src/BrewManiacEx.cpp:127:15: note: declared here
  661. BrewManiacWeb bmWeb;
  662. ^
  663. src/BrewManiacEx.cpp:772:29: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  664. requestSend(request,200);
  665. ^
  666. src/BrewManiacEx.cpp:774:29: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  667. requestSend(request,400);
  668. ^
  669. src/BrewManiacEx.cpp:781:8: error: invalid use of non-static data member 'BrewLogger::bmWeb'
  670. if(bmWeb.updateSettings(data)){
  671. ^
  672. src/BrewManiacEx.cpp:127:15: note: declared here
  673. BrewManiacWeb bmWeb;
  674. ^
  675. src/BrewManiacEx.cpp:782:29: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  676. requestSend(request,200);
  677. ^
  678. src/BrewManiacEx.cpp:784:29: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  679. requestSend(request,400);
  680. ^
  681. src/BrewManiacEx.cpp:790:30: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  682. requestSend(request,FileSystem,AUDIO_FILE);
  683. ^
  684. src/BrewManiacEx.cpp:116:17: note: declared here
  685. FS& FileSystem =SPIFFS;
  686. ^
  687. src/BrewManiacEx.cpp:806:12: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  688. if(FileSystem.exists(pathWithJgz)){
  689. ^
  690. src/BrewManiacEx.cpp:116:17: note: declared here
  691. FS& FileSystem =SPIFFS;
  692. ^
  693. src/BrewManiacEx.cpp:808:41: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  694. response = request->beginResponse(FileSystem, pathWithJgz,"application/javascript");
  695. ^
  696. src/BrewManiacEx.cpp:116:17: note: declared here
  697. FS& FileSystem =SPIFFS;
  698. ^
  699. src/BrewManiacEx.cpp:811:34: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, AsyncWebServerResponse*)' without object
  700. requestSend(request,response);
  701. ^
  702. src/BrewManiacEx.cpp:834:44: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  703. response = request->beginResponse(FileSystem, path,mime);
  704. ^
  705. src/BrewManiacEx.cpp:116:17: note: declared here
  706. FS& FileSystem =SPIFFS;
  707. ^
  708. src/BrewManiacEx.cpp:837:40: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, AsyncWebServerResponse*)' without object
  709. requestSend(request,response);
  710. ^
  711. src/BrewManiacEx.cpp:839:17: error: invalid use of non-static data member 'BrewLogger::fileReader'
  712. if(! fileReader.prepare(path,start,end)) {
  713. ^
  714. src/BrewManiacEx.cpp:701:3: note: declared here
  715. } fileReader;
  716. ^
  717. src/BrewManiacEx.cpp:840:39: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  718. requestSend(request,500);
  719. ^
  720. src/BrewManiacEx.cpp:844:84: error: invalid use of non-static data member 'BrewLogger::fileReader'
  721. AsyncWebServerResponse *response = request->beginResponse(mime,fileReader.size() , [](uint8_t *buffer, size_t maxLen, size_t index) -> size_t {
  722. ^
  723. src/BrewManiacEx.cpp:701:3: note: declared here
  724. } fileReader;
  725. ^
  726. src/BrewManiacEx.cpp: In lambda function:
  727. src/BrewManiacEx.cpp:845:38: error: invalid use of non-static data member 'BrewLogger::fileReader'
  728. return fileReader.read(buffer, maxLen, index);
  729. ^
  730. src/BrewManiacEx.cpp:701:3: note: declared here
  731. } fileReader;
  732. ^
  733. src/BrewManiacEx.cpp: In member function 'virtual void BrewLogger::BmwHandler::handleRequest(AsyncWebServerRequest*)':
  734. src/BrewManiacEx.cpp:848:57: error: invalid use of non-static data member 'BrewLogger::fileReader'
  735. sprintf(buff,"bytes %d-%d/%d",start,fileReader.end(),fileReader.filesize());
  736. ^
  737. src/BrewManiacEx.cpp:701:3: note: declared here
  738. } fileReader;
  739. ^
  740. src/BrewManiacEx.cpp:848:74: error: invalid use of non-static data member 'BrewLogger::fileReader'
  741. sprintf(buff,"bytes %d-%d/%d",start,fileReader.end(),fileReader.filesize());
  742. ^
  743. src/BrewManiacEx.cpp:701:3: note: declared here
  744. } fileReader;
  745. ^
  746. src/BrewManiacEx.cpp:855:40: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, AsyncWebServerResponse*)' without object
  747. requestSend(request,response);
  748. ^
  749. src/BrewManiacEx.cpp:860:13: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  750. if(FileSystem.exists(pathWithGz)){
  751. ^
  752. src/BrewManiacEx.cpp:116:17: note: declared here
  753. FS& FileSystem =SPIFFS;
  754. ^
  755. src/BrewManiacEx.cpp:864:18: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  756. File file=FileSystem.open(pathWithGz,"r");
  757. ^
  758. src/BrewManiacEx.cpp:116:17: note: declared here
  759. FS& FileSystem =SPIFFS;
  760. ^
  761. src/BrewManiacEx.cpp:866:30: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  762. requestSend(request,500);
  763. ^
  764. src/BrewManiacEx.cpp:869:70: error: cannot call member function 'const String BrewLogger::getContentType(const String&)' without object
  765. response = request->beginResponse(file, path,getContentType(path));
  766. ^
  767. src/BrewManiacEx.cpp:871:37: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, AsyncWebServerResponse*)' without object
  768. requestSend(request,response);
  769. ^
  770. src/BrewManiacEx.cpp:873:19: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  771. }else if(FileSystem.exists(path)){
  772. ^
  773. src/BrewManiacEx.cpp:116:17: note: declared here
  774. FS& FileSystem =SPIFFS;
  775. ^
  776. src/BrewManiacEx.cpp:874:44: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  777. response = request->beginResponse(FileSystem, path);
  778. ^
  779. src/BrewManiacEx.cpp:116:17: note: declared here
  780. FS& FileSystem =SPIFFS;
  781. ^
  782. src/BrewManiacEx.cpp:876:37: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, AsyncWebServerResponse*)' without object
  783. requestSend(request,response);
  784. ^
  785. src/BrewManiacEx.cpp:881:64: error: cannot call member function 'const uint8_t* BrewLogger::getEmbeddedFile(const char*, bool&, unsigned int&)' without object
  786. const uint8_t* file=getEmbeddedFile(path.c_str(),gzip,size);
  787. ^
  788. src/BrewManiacEx.cpp:887:39: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, AsyncWebServerResponse*)' without object
  789. requestSend(request,response);
  790. ^
  791. src/BrewManiacEx.cpp:891:30: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  792. requestSend(request,500);
  793. ^
  794. src/BrewManiacEx.cpp: In member function 'virtual bool BrewLogger::BmwHandler::canHandle(AsyncWebServerRequest*)':
  795. src/BrewManiacEx.cpp:910:20: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  796. return FileSystem.exists(AUDIO_FILE);
  797. ^
  798. src/BrewManiacEx.cpp:116:17: note: declared here
  799. FS& FileSystem =SPIFFS;
  800. ^
  801. src/BrewManiacEx.cpp:925:48: error: cannot call member function 'const uint8_t* BrewLogger::getEmbeddedFile(const char*, bool&, unsigned int&)' without object
  802. if(getEmbeddedFile(path.c_str(),dum,dum2)) return true;
  803. ^
  804. src/BrewManiacEx.cpp:927:8: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  805. if(FileSystem.exists(path)) return true;
  806. ^
  807. src/BrewManiacEx.cpp:116:17: note: declared here
  808. FS& FileSystem =SPIFFS;
  809. ^
  810. src/BrewManiacEx.cpp:932:13: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  811. if(FileSystem.exists(pathWithJgz)) return true;
  812. ^
  813. src/BrewManiacEx.cpp:116:17: note: declared here
  814. FS& FileSystem =SPIFFS;
  815. ^
  816. src/BrewManiacEx.cpp:936:10: error: invalid use of non-static data member 'BrewLogger::FileSystem'
  817. if(FileSystem.exists(pathWithGz)) return true;
  818. ^
  819. src/BrewManiacEx.cpp:116:17: note: declared here
  820. FS& FileSystem =SPIFFS;
  821. ^
  822. src/BrewManiacEx.cpp: In member function 'void BrewLogger::broadcastMessage(String)':
  823. src/BrewManiacEx.cpp:1282:2: error: '((BrewLogger*)this)->BrewLogger::ws' does not have class type
  824. ws.textAll(msg);
  825. ^
  826. src/BrewManiacEx.cpp: In member function 'void BrewLogger::broadcastMessage(const char*, const char*)':
  827. src/BrewManiacEx.cpp:1293:18: error: '((BrewLogger*)this)->BrewLogger::ws' does not have class type
  828. if(event==NULL) ws.textAll(msg);
  829. ^
  830. src/BrewManiacEx.cpp:1294:2: error: '((BrewLogger*)this)->BrewLogger::ws' does not have class type
  831. ws.textAll(String(event)+":" + msg);
  832. ^
  833. src/BrewManiacEx.cpp: In member function 'void BrewLogger::setup()':
  834. src/BrewManiacEx.cpp:1489:29: error: invalid use of non-static member function
  835. WiFiSetup.onEvent(wiFiEvent);
  836. ^
  837. src/BrewManiacEx.cpp:1510:2: error: '((BrewLogger*)this)->BrewLogger::httpUpdateHandler' does not have class type
  838. httpUpdateHandler.setUrl(ONLINE_UPDATE_PATH);
  839. ^
  840. src/BrewManiacEx.cpp:1512:2: error: '((BrewLogger*)this)->BrewLogger::httpUpdateHandler' does not have class type
  841. httpUpdateHandler.setCredential(_gUsername,_gPassword);
  842. ^
  843. src/BrewManiacEx.cpp:1513:2: error: '((BrewLogger*)this)->BrewLogger::httpUpdateHandler' does not have class type
  844. httpUpdateHandler.setVersion(BME8266_VERSION);
  845. ^
  846. src/BrewManiacEx.cpp:1514:2: error: '((BrewLogger*)this)->BrewLogger::server' does not have class type
  847. server.addHandler(&httpUpdateHandler);
  848. ^
  849. src/BrewManiacEx.cpp:1514:21: error: ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function. Say '&BrewLogger::httpUpdateHandler' [-fpermissive]
  850. server.addHandler(&httpUpdateHandler);
  851. ^
  852. src/BrewManiacEx.cpp:1520:3: error: '((BrewLogger*)this)->BrewLogger::ws' does not have class type
  853. ws.onEvent(onWsEvent);
  854. ^
  855. src/BrewManiacEx.cpp:1521:5: error: '((BrewLogger*)this)->BrewLogger::server' does not have class type
  856. server.addHandler(&ws);
  857. ^
  858. src/BrewManiacEx.cpp:1521:24: error: ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function. Say '&BrewLogger::ws' [-fpermissive]
  859. server.addHandler(&ws);
  860. ^
  861. src/BrewManiacEx.cpp:1532:3: error: '((BrewLogger*)this)->BrewLogger::server' does not have class type
  862. server.addHandler(&networkConfig);
  863. ^
  864. src/BrewManiacEx.cpp:1534:3: error: '((BrewLogger*)this)->BrewLogger::server' does not have class type
  865. server.addHandler(&recipeFileHandler);
  866. ^
  867. src/BrewManiacEx.cpp:1536:3: error: '((BrewLogger*)this)->BrewLogger::server' does not have class type
  868. server.addHandler(&bmwHandler);
  869. ^
  870. src/BrewManiacEx.cpp:1539:2: error: '((BrewLogger*)this)->BrewLogger::server' does not have class type
  871. server.addHandler(&appleCNAHandler);
  872. ^
  873. src/BrewManiacEx.cpp:1542:2: error: '((BrewLogger*)this)->BrewLogger::server' does not have class type
  874. server.addHandler(&logHandler);
  875. ^
  876. src/BrewManiacEx.cpp:1548:2: error: '((BrewLogger*)this)->BrewLogger::server' does not have class type
  877. server.on("/system",[](AsyncWebServerRequest *request){
  878. ^
  879. src/BrewManiacEx.cpp:1572:2: error: '((BrewLogger*)this)->BrewLogger::server' does not have class type
  880. server.onNotFound([](AsyncWebServerRequest *request){
  881. ^
  882. src/BrewManiacEx.cpp: In lambda function:
  883. src/BrewManiacEx.cpp:1573:26: error: 'this' was not captured for this lambda function
  884. requestSend(request,404);
  885. ^
  886. src/BrewManiacEx.cpp:1573:26: error: cannot call member function 'void BrewLogger::requestSend(AsyncWebServerRequest*, int, const String&, const String&)' without object
  887. src/BrewManiacEx.cpp: In member function 'void BrewLogger::setup()':
  888. src/BrewManiacEx.cpp:1577:2: error: '((BrewLogger*)this)->BrewLogger::server' does not have class type
  889. server.begin();
  890. ^
  891. src/BrewManiacEx.cpp:1583:33: error: invalid use of non-static member function
  892. bmWeb.onEvent(bmwEventHandler);
  893. ^
  894. src/BrewManiacEx.cpp: In member function 'void BrewLogger::loop()':
  895. src/BrewManiacEx.cpp:1641:4: error: '((BrewLogger*)this)->BrewLogger::httpUpdateHandler' does not have class type
  896. httpUpdateHandler.runUpdate();
  897. ^
  898. src/BrewManiacEx.cpp: At global scope:
  899. src/BrewManiacEx.cpp:1666:1: error: expected unqualified-id at end of input
  900. }
  901. ^
  902. *** [.pio/build/esp32-dev/src/BrewManiacEx.cpp.o] Error 1
  903. ================================================================================ [FAILED] Took 16.23 seconds ================================================================================
  904.  
  905. Environment Status Duration
  906. ------------- -------- ------------
  907. esp32-dev FAILED 00:00:16.23
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement