Zravím ,uz nejaký cas sa neviem posunut s projektom dalej (asi 2 r.
je to moje hoby profesiou sa venujem stavebnictvu preto mi to tak dlho trva)
potrebujem odmerat teplotu (hmotnost, vlhkost atd.) pridat
k nameranej hodnote čas ulozit na sdcard alebo SPIFFS a neskor
zobrazit hodnoty v prehliadaci ako graf s pouzitim esp32 (esp8266)
Tento navod je moja predstava ako by to mohlo fungovat, ale ma to
jeden hacik, zobrazuje graf len v realnom case.Snazil som sa to upravovat
ale bezvysledne.
https://randomnerdtutorials.com/esp32-e ... eb-server/
moja predstava je ked pridem vecer z roboty otvorym prehliadac a v grafe vydim
priebeh z celeho dna . Viem ze ide to aj pomocou thingspeak tak to mam teraz,
ale mne to staci v lokalnej sieti bez pouzita tretich strán.
Nasiel som na nete tento odkaz
https://tttapa.github.io/ESP8266/Chap16 ... gging.html
co je idealne pre mna ,len to nejde nahrat do esp8266 vyhadzuje to nejake chyby
ak by mal niekto cas sa na ten sketch pozriet bol by som mu vdacny
Dopredu vdaka za pomoc.
snimac+cas do sdcard/SPIFFS potom nacitat v prehliadaci ako graf
Moderátor: Moderátori
Re: snimac+cas do sdcard/SPIFFS potom nacitat v prehliadaci ako graf
Som na to rychlo kukol a mozem odporucit nahradit FS.h LittleFS.h.
Urcite ti to pri kompilacii vyhadzuje warning !
Nenapisal si aku chybu(chyby) ti vyhadzuje. Tazko potom pomozem
Urcite ti to pri kompilacii vyhadzuje warning !
Nenapisal si aku chybu(chyby) ti vyhadzuje. Tazko potom pomozem
0
Re: snimac+cas do sdcard/SPIFFS potom nacitat v prehliadaci ako graf
toto asi nie LittleFS.h.: No such file or directory
s FS.h je vysledok takyto
C:\Users\MikB\AppData\Local\Temp\arduino_modified_sketch_549615\sketch_jan22c.ino: In function 'void setup()':
sketch_jan22c:52:13: error: 'startWiFi' was not declared in this scope
startWiFi(); // Start a Wi-Fi access point, and try to connect to some given access points. Then wait for either an AP or STA connection
^
sketch_jan22c:54:12: error: 'startOTA' was not declared in this scope
startOTA(); // Start the OTA service
^
sketch_jan22c:56:15: error: 'startSPIFFS' was not declared in this scope
startSPIFFS(); // Start the SPIFFS and list all contents
^
sketch_jan22c:58:13: error: 'startMDNS' was not declared in this scope
startMDNS(); // Start the mDNS responder
^
sketch_jan22c:60:15: error: 'startServer' was not declared in this scope
startServer(); // Start a HTTP server with a file read handler and an upload handler
^
sketch_jan22c:62:12: error: 'startUDP' was not declared in this scope
startUDP(); // Start listening for UDP messages to port 123
^
sketch_jan22c:68:29: error: 'sendNTPpacket' was not declared in this scope
sendNTPpacket(timeServerIP);
^
C:\Users\MikB\AppData\Local\Temp\arduino_modified_sketch_549615\sketch_jan22c.ino: In function 'void loop()':
sketch_jan22c:86:31: error: 'sendNTPpacket' was not declared in this scope
sendNTPpacket(timeServerIP);
^
sketch_jan22c:89:27: error: 'getTime' was not declared in this scope
uint32_t time = getTime(); // Check if the time server has responded, if so, get the UNIX time
^
sketch_jan22c:124:31: error: 'sendNTPpacket' was not declared in this scope
sendNTPpacket(timeServerIP);
^
Byly nalezené násobné knihovny "ESP8266mDNS.h"
Použitý: C:\Users\MikB\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266mDNS
Byly nalezené násobné knihovny "OneWire.h"
Použitý: E:\vcely\arduino-1.8.10-windows\arduino-1.8.10-windows\arduino-1.8.10\libraries\OneWire
Byly nalezené násobné knihovny "DallasTemperature.h"
Použitý: C:\Users\MikB\Documents\Arduino\libraries\DallasTemperature
Nepoužitý: E:\vcely\arduino-1.8.10-windows\arduino-1.8.10-windows\arduino-1.8.10\libraries\DallasTemperature
Byly nalezené násobné knihovny "ESP8266WiFi.h"
Použitý: C:\Users\MikB\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi
tieto dve kniznice nepouzilo <ESP8266WiFiMulti.h>
ze by to bola chyba? <WiFiUdp.h>
Byly nalezené násobné knihovny "ArduinoOTA.h"
Použitý: C:\Users\MikB\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ArduinoOTA
Byly nalezené násobné knihovny "ESP8266WebServer.h"
Použitý: C:\Users\MikB\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WebServer
exit status 1
'startWiFi' was not declared in this scope
s FS.h je vysledok takyto
C:\Users\MikB\AppData\Local\Temp\arduino_modified_sketch_549615\sketch_jan22c.ino: In function 'void setup()':
sketch_jan22c:52:13: error: 'startWiFi' was not declared in this scope
startWiFi(); // Start a Wi-Fi access point, and try to connect to some given access points. Then wait for either an AP or STA connection
^
sketch_jan22c:54:12: error: 'startOTA' was not declared in this scope
startOTA(); // Start the OTA service
^
sketch_jan22c:56:15: error: 'startSPIFFS' was not declared in this scope
startSPIFFS(); // Start the SPIFFS and list all contents
^
sketch_jan22c:58:13: error: 'startMDNS' was not declared in this scope
startMDNS(); // Start the mDNS responder
^
sketch_jan22c:60:15: error: 'startServer' was not declared in this scope
startServer(); // Start a HTTP server with a file read handler and an upload handler
^
sketch_jan22c:62:12: error: 'startUDP' was not declared in this scope
startUDP(); // Start listening for UDP messages to port 123
^
sketch_jan22c:68:29: error: 'sendNTPpacket' was not declared in this scope
sendNTPpacket(timeServerIP);
^
C:\Users\MikB\AppData\Local\Temp\arduino_modified_sketch_549615\sketch_jan22c.ino: In function 'void loop()':
sketch_jan22c:86:31: error: 'sendNTPpacket' was not declared in this scope
sendNTPpacket(timeServerIP);
^
sketch_jan22c:89:27: error: 'getTime' was not declared in this scope
uint32_t time = getTime(); // Check if the time server has responded, if so, get the UNIX time
^
sketch_jan22c:124:31: error: 'sendNTPpacket' was not declared in this scope
sendNTPpacket(timeServerIP);
^
Byly nalezené násobné knihovny "ESP8266mDNS.h"
Použitý: C:\Users\MikB\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266mDNS
Byly nalezené násobné knihovny "OneWire.h"
Použitý: E:\vcely\arduino-1.8.10-windows\arduino-1.8.10-windows\arduino-1.8.10\libraries\OneWire
Byly nalezené násobné knihovny "DallasTemperature.h"
Použitý: C:\Users\MikB\Documents\Arduino\libraries\DallasTemperature
Nepoužitý: E:\vcely\arduino-1.8.10-windows\arduino-1.8.10-windows\arduino-1.8.10\libraries\DallasTemperature
Byly nalezené násobné knihovny "ESP8266WiFi.h"
Použitý: C:\Users\MikB\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi
tieto dve kniznice nepouzilo <ESP8266WiFiMulti.h>
ze by to bola chyba? <WiFiUdp.h>
Byly nalezené násobné knihovny "ArduinoOTA.h"
Použitý: C:\Users\MikB\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ArduinoOTA
Byly nalezené násobné knihovny "ESP8266WebServer.h"
Použitý: C:\Users\MikB\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WebServer
exit status 1
'startWiFi' was not declared in this scope
0
Re: snimac+cas do sdcard/SPIFFS potom nacitat v prehliadaci ako graf
Vsetky chyby su jasne popisane
Hovoria ze volas funkcie, ktore nemas nikde deklarovane.
No a urcite by som pouzil LittleFS
Z tej linky co si dal, si pozri aj predchadzajuce kapitoly. Tam mas zadeklarovane aj tie funkcie.
Hovoria ze volas funkcie, ktore nemas nikde deklarovane.
No a urcite by som pouzil LittleFS
Z tej linky co si dal, si pozri aj predchadzajuce kapitoly. Tam mas zadeklarovane aj tie funkcie.
0
Re: snimac+cas do sdcard/SPIFFS potom nacitat v prehliadaci ako graf
OK zatial dik idem to dostudovat
0
-
- Podobné témy
- Odpovedí
- Zobrazení
- Posledný príspevok
-
- 0 Odpovedí
- 1966 Zobrazení
-
Posledný príspevok od používateľa nickairsoft
-
- 10 Odpovedí
- 1082 Zobrazení
-
Posledný príspevok od používateľa cool-zool
-
- 0 Odpovedí
- 2386 Zobrazení
-
Posledný príspevok od používateľa lato
-
- 17 Odpovedí
- 3109 Zobrazení
-
Posledný príspevok od používateľa kapor
-
- 13 Odpovedí
- 2616 Zobrazení
-
Posledný príspevok od používateľa hal_sk