-
Notifications
You must be signed in to change notification settings - Fork 5
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
seems something is wrong with the esp32 code. #13
Comments
I just verified the code with Arduino 1.8.5 In your preference, check Show verbose. |
Thanks for the help. I uninstalled 1.8.1 and installed 1.8.5. checked show verbose as you suggested. ran the verify and this is the entire error message. if i did the error message wrong i apologize. this is the first time I've asked for help so I'm still learning. In file included from C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\WAAC_ESP32.ino:40:0: C:\Users\wdavi\OneDrive\Documents\Arduino\libraries\OneWire/OneWire.h:254:2: warning: #warning "OneWire. Fallback mode. Using API calls for pinMode,digitalRead and digitalWrite. Operation of this library is not guaranteed on this architecture." [-Wcpp] #warning "OneWire. Fallback mode. Using API calls for pinMode,digitalRead and digitalWrite. Operation of this library is not guaranteed on this architecture." ^ In file included from C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\WAAC_ESP32.ino:37:0: C:\Users\wdavi\OneDrive\Documents\Arduino\libraries\Input/Input.h:17:1: error: expected class-name before '{' token { ^ In file included from C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\WAAC_ESP32.ino:38:0: C:\Users\wdavi\OneDrive\Documents\Arduino\libraries\InputMCP/InputMCP.h:18:1: error: expected class-name before '{' token { ^ In file included from C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\WAAC_ESP32.ino:41:0: C:\Users\wdavi\OneDrive\Documents\Arduino\libraries\OneWireSensor/OneWireSensor.h:17:1: error: expected class-name before '{' token { ^ C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\Analog.ino: In function 'void analogAjaxOutput(WiFiClient, Device*)': Analog:6: error: 'Analog' does not name a type
Analog:6: error: expected '>' before '*' token
Analog:6: error: expected '(' before '*' token Analog:6: error: expected primary-expression before '>' token
Analog:6: error: expected ')' before ';' token
Analog:10: error: 'Analog' does not name a type
Analog:10: error: expected '>' before '*' token
Analog:10: error: expected '(' before '*' token Analog:10: error: expected primary-expression before '>' token
Analog:13: error: 'Analog' does not name a type
Analog:13: error: expected '>' before '*' token
Analog:13: error: expected '(' before '*' token Analog:13: error: expected primary-expression before '>' token
Analog:16: error: 'Analog' does not name a type
Analog:16: error: expected '>' before '*' token
Analog:16: error: expected '(' before '*' token Analog:16: error: expected primary-expression before '>' token
Analog:16: error: 'class Device' has no member named 'getLowerTarget'
Analog:19: error: 'Analog' does not name a type
Analog:19: error: expected '>' before '*' token
Analog:19: error: expected '(' before '*' token Analog:19: error: expected primary-expression before '>' token
Analog:19: error: 'class Device' has no member named 'getHigherTarget'
Analog:22: error: 'Analog' does not name a type
Analog:22: error: expected '>' before '*' token
Analog:22: error: expected '(' before '*' token Analog:22: error: expected primary-expression before '>' token
Analog:25: error: 'Analog' does not name a type
Analog:25: error: expected '>' before '*' token
Analog:25: error: expected '(' before '*' token Analog:25: error: expected primary-expression before '>' token
Analog:28: error: 'Analog' does not name a type
Analog:28: error: expected '>' before '*' token
Analog:28: error: expected '(' before '*' token Analog:28: error: expected primary-expression before '>' token
Analog:28: error: 'class Device' has no member named 'getConditionType'
Analog:31: error: 'Analog' does not name a type
Analog:31: error: expected '>' before '*' token
Analog:31: error: expected '(' before '*' token Analog:31: error: expected primary-expression before '>' token
Analog:31: error: 'class Device' has no member named 'getFormula'
C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\Analog.ino: In function 'void saveAnalog(Device*)': Analog:39: error: 'Analog' does not name a type
Analog:39: error: expected '>' before '*' token
Analog:39: error: expected '(' before '*' token Analog:39: error: expected primary-expression before '>' token
Analog:39: error: expected ')' before ';' token
Analog:43: error: 'Analog' does not name a type
Analog:43: error: expected '>' before '*' token
Analog:43: error: expected '(' before '*' token Analog:43: error: expected primary-expression before '>' token
Analog:43: error: expected ')' before ';' token
Analog:47: error: 'Analog' does not name a type
Analog:47: error: expected '>' before '*' token
Analog:47: error: expected '(' before '*' token Analog:47: error: expected primary-expression before '>' token
Analog:47: error: 'class Device' has no member named 'setLowerTarget'
Analog:47: error: expected ')' before ';' token
Analog:51: error: 'Analog' does not name a type
Analog:51: error: expected '>' before '*' token
Analog:51: error: expected '(' before '*' token Analog:51: error: expected primary-expression before '>' token
Analog:51: error: 'class Device' has no member named 'setHigherTarget'
Analog:51: error: expected ')' before ';' token
Analog:55: error: 'Analog' does not name a type
Analog:55: error: expected '>' before '*' token
Analog:55: error: expected '(' before '*' token Analog:55: error: expected primary-expression before '>' token
Analog:55: error: expected ')' before ';' token
Analog:60: error: 'Analog' does not name a type
Analog:60: error: expected '>' before '*' token
Analog:60: error: expected '(' before '*' token Analog:60: error: expected primary-expression before '>' token
Analog:60: error: 'class Device' has no member named 'setFormula'
Analog:60: error: expected ')' before ';' token
Analog:64: error: 'Analog' does not name a type
Analog:64: error: expected '>' before '*' token
Analog:64: error: expected '(' before '*' token Analog:64: error: expected primary-expression before '>' token
Analog:64: error: 'class Device' has no member named 'setConditionType'
Analog:64: error: expected ')' before ';' token
C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\Analog.ino: In function 'void createAnalog()': Analog:80: error: 'Analog' was not declared in this scope
Analog:80: error: 'temp' was not declared in this scope
Analog:80: error: expected type-specifier before 'Analog'
Analog:96: error: 'Analog' does not name a type
Analog:96: error: expected '>' before '*' token
Analog:96: error: expected '(' before '*' token Analog:96: error: expected primary-expression before '>' token
Analog:96: error: expected ')' before ';' token
Analog:100: error: 'Analog' does not name a type
Analog:100: error: expected '>' before '*' token
Analog:100: error: expected '(' before '*' token Analog:100: error: expected primary-expression before '>' token
Analog:100: error: expected ')' before ';' token
Analog:104: error: 'Analog' does not name a type
Analog:104: error: expected '>' before '*' token
Analog:104: error: expected '(' before '*' token Analog:104: error: expected primary-expression before '>' token
Analog:104: error: expected ')' before ';' token
Analog:108: error: 'Analog' does not name a type
Analog:108: error: expected '>' before '*' token
Analog:108: error: expected '(' before '*' token Analog:108: error: expected primary-expression before '>' token
Analog:108: error: expected ')' before ';' token
Analog:112: error: 'Analog' does not name a type
Analog:112: error: expected '>' before '*' token
Analog:112: error: expected '(' before '*' token Analog:112: error: expected primary-expression before '>' token
Analog:112: error: expected ')' before ';' token
Analog:117: error: 'Analog' does not name a type
Analog:117: error: expected '>' before '*' token
Analog:117: error: expected '(' before '*' token Analog:117: error: expected primary-expression before '>' token
Analog:117: error: expected ')' before ';' token
C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\Hall.ino: In function 'void hallAjaxOutput(WiFiClient, Device*)': Hall:6: error: 'HallSensor' does not name a type
Hall:6: error: expected '>' before '*' token
Hall:6: error: expected '(' before '*' token Hall:6: error: expected primary-expression before '>' token
Hall:6: error: expected ')' before ';' token
Hall:10: error: 'HallSensor' does not name a type
Hall:10: error: expected '>' before '*' token
Hall:10: error: expected '(' before '*' token Hall:10: error: expected primary-expression before '>' token
Hall:13: error: 'HallSensor' does not name a type
Hall:13: error: expected '>' before '*' token
Hall:13: error: expected '(' before '*' token Hall:13: error: expected primary-expression before '>' token
Hall:19: error: 'HallSensor' does not name a type
Hall:19: error: expected '>' before '*' token
Hall:19: error: expected '(' before '*' token Hall:19: error: expected primary-expression before '>' token
Hall:19: error: 'class Device' has no member named 'getHigherTarget'
Hall:22: error: 'HallSensor' does not name a type
Hall:22: error: expected '>' before '*' token
Hall:22: error: expected '(' before '*' token Hall:22: error: expected primary-expression before '>' token
Hall:25: error: 'HallSensor' does not name a type
Hall:25: error: expected '>' before '*' token
Hall:25: error: expected '(' before '*' token Hall:25: error: expected primary-expression before '>' token
Hall:28: error: 'HallSensor' does not name a type
Hall:28: error: expected '>' before '*' token
Hall:28: error: expected '(' before '*' token Hall:28: error: expected primary-expression before '>' token
Hall:28: error: 'class Device' has no member named 'getConditionType'
Hall:31: error: 'HallSensor' does not name a type
Hall:31: error: expected '>' before '*' token
Hall:31: error: expected '(' before '*' token Hall:31: error: expected primary-expression before '>' token
Hall:31: error: 'class Device' has no member named 'getFormula'
C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\Hall.ino: In function 'void saveHallSensor(Device*)': Hall:39: error: 'HallSensor' does not name a type
Hall:39: error: expected '>' before '*' token
Hall:39: error: expected '(' before '*' token Hall:39: error: expected primary-expression before '>' token
Hall:39: error: expected ')' before ';' token
Hall:43: error: 'HallSensor' does not name a type
Hall:43: error: expected '>' before '*' token
Hall:43: error: expected '(' before '*' token Hall:43: error: expected primary-expression before '>' token
Hall:43: error: expected ')' before ';' token
Hall:47: error: 'HallSensor' does not name a type
Hall:47: error: expected '>' before '*' token
Hall:47: error: expected '(' before '*' token Hall:47: error: expected primary-expression before '>' token
Hall:47: error: 'class Device' has no member named 'setLowerTarget'
Hall:47: error: expected ')' before ';' token
Hall:51: error: 'HallSensor' does not name a type
Hall:51: error: expected '>' before '*' token
Hall:51: error: expected '(' before '*' token Hall:51: error: expected primary-expression before '>' token
Hall:51: error: 'class Device' has no member named 'setHigherTarget'
Hall:51: error: expected ')' before ';' token
Hall:55: error: 'HallSensor' does not name a type
Hall:55: error: expected '>' before '*' token
Hall:55: error: expected '(' before '*' token Hall:55: error: expected primary-expression before '>' token
Hall:55: error: expected ')' before ';' token
Hall:60: error: 'HallSensor' does not name a type
Hall:60: error: expected '>' before '*' token
Hall:60: error: expected '(' before '*' token Hall:60: error: expected primary-expression before '>' token
Hall:60: error: 'class Device' has no member named 'setFormula'
Hall:60: error: expected ')' before ';' token
Hall:64: error: 'HallSensor' does not name a type
Hall:64: error: expected '>' before '*' token
Hall:64: error: expected '(' before '*' token Hall:64: error: expected primary-expression before '>' token
Hall:64: error: 'class Device' has no member named 'setConditionType'
Hall:64: error: expected ')' before ';' token
C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\Hall.ino: In function 'void createHallSensor()': Hall:79: error: 'HallSensor' was not declared in this scope
Hall:79: error: 'temp' was not declared in this scope
Hall:79: error: expected type-specifier before 'HallSensor'
Hall:84: error: 'HallSensor' does not name a type
Hall:84: error: expected '>' before '*' token
Hall:84: error: expected '(' before '*' token Hall:84: error: expected primary-expression before '>' token
Hall:84: error: 'class Device' has no member named 'setup'
C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\Hall.ino: In lambda function: Hall:84: error: 'HallSensor' does not name a type
Hall:84: error: expected '>' before '*' token
Hall:84: error: expected '(' before '*' token Hall:84: error: expected primary-expression before '>' token
Hall:84: error: 'class Device' has no member named 'rpm'
Hall:84: error: expected ')' before ';' token
C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\Hall.ino: In function 'void createHallSensor()': Hall:84: error: expected ')' before ';' token
Hall:97: error: 'HallSensor' does not name a type
Hall:97: error: expected '>' before '*' token
Hall:97: error: expected '(' before '*' token Hall:97: error: expected primary-expression before '>' token
Hall:97: error: expected ')' before ';' token
Hall:101: error: 'HallSensor' does not name a type
Hall:101: error: expected '>' before '*' token
Hall:101: error: expected '(' before '*' token Hall:101: error: expected primary-expression before '>' token
Hall:101: error: expected ')' before ';' token
Hall:105: error: 'HallSensor' does not name a type
Hall:105: error: expected '>' before '*' token
Hall:105: error: expected '(' before '*' token Hall:105: error: expected primary-expression before '>' token
Hall:105: error: expected ')' before ';' token
Hall:109: error: 'HallSensor' does not name a type
Hall:109: error: expected '>' before '*' token
Hall:109: error: expected '(' before '*' token Hall:109: error: expected primary-expression before '>' token
Hall:109: error: expected ')' before ';' token
Hall:113: error: 'HallSensor' does not name a type
Hall:113: error: expected '>' before '*' token
Hall:113: error: expected '(' before '*' token Hall:113: error: expected primary-expression before '>' token
Hall:113: error: expected ')' before ';' token
Hall:118: error: 'HallSensor' does not name a type
Hall:118: error: expected '>' before '*' token
Hall:118: error: expected '(' before '*' token Hall:118: error: expected primary-expression before '>' token
Hall:118: error: expected ')' before ';' token
Hall:122: error: 'HallSensor' does not name a type
Hall:122: error: expected '>' before '*' token
Hall:122: error: expected '(' before '*' token Hall:122: error: expected primary-expression before '>' token
Hall:122: error: expected ')' before ';' token
C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\OneWire.ino: In function 'void oneWireAjaxOutput(WiFiClient, Device*)': OneWire:16: error: 'class OneWireSensor' has no member named 'getLowerTarget'
OneWire:19: error: 'class OneWireSensor' has no member named 'getHigherTarget'
OneWire:28: error: 'class OneWireSensor' has no member named 'getConditionType'
C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\OneWire.ino: In function 'void saveOneWire(Device*)': OneWire:44: error: 'class OneWireSensor' has no member named 'setLowerTarget'
OneWire:48: error: 'class OneWireSensor' has no member named 'setHigherTarget'
OneWire:56: error: 'class OneWireSensor' has no member named 'setConditionType'
C:\Users\wdavi\OneDrive\Documents\esp32 vivarium\ESP32\WAAC_ESP32\OneWire.ino: In function 'void createOneWire()': OneWire:88: error: 'class OneWireSensor' has no member named 'setLowerTarget'
OneWire:92: error: 'class OneWireSensor' has no member named 'setHigherTarget'
OneWire:100: error: 'class OneWireSensor' has no member named 'setConditionType'
Multiple libraries were found for "WiFi.h" |
Did you put the library files in the libraries folder? Doesn't look like the Arduino IDE see the library files. |
after reading the errors closer, it might be the link to one drive. i will disable one drive and see if that solves the issue and report back...Thanks again! |
so i have a partial success. i was able to install by converting to platformIO. after a bit of work that is. now when i run it, i can not connect to web page at ip address in code and I get this error in serial monitor. ......................Connected to wifi I googled the error but was not able to find anything that made sense to me... btw when i get this to work, it will control 4 bio active tree frog tanks, one for a desert spiny lizard, and two crested gecko . I've made a nice board that contains a wroom-32d module with a mosfet and relay for 8 pins selected by a jumper. The boards works great if I run it on Blynk, but with limited function as i don't want to rely on that platform...Thanks again |
Glad to hear it's working
Is it can't connect to a Network Time Server... I think I used google but you can add another server. I was playing with platformIO too. If you can post your changes for platformIO for others, that'll be great. |
I would be happy to post my changes.. would the NTP problem keep me from being able to access the web page to log in? I am really a NOOB with networking and am stumbling my through this. Hardware is my main ability. I added my ssid and passphrase, but left the code unaltered other than that. After upload and a reset of my board, I go to browser and enter 192.168.1.177. all i get is a "cant connect error" from browser. what am i missing? |
The NPT shouldn't interrupt the web server. Can you open up an simple example web server script from Arduino? Enter in the necessary WIFI stuff and run that. See if you get the same connection error. Best to test out on a simple script. |
I have another board with a simple webserver script that I am using to control lights on a tank..it was running this morning. Although it looses connection often and requires a restart. I will run a simple sketch on the board I'm working on and see how that goes. I am waiting for more boards to get back from the board house, but if I need to I can use a dev. Board. If it will run a simple webserver any idea on where I could go next? After running this code through Platformio, I will never use arduino IDE again. Platform is much faster at uploads, and writing code seems easier... |
Import the simple web server to platformIO and run it from there too. I would say if your board can run a simple web server without connection loses, it can run WAAC. A good board shouldn't lose connections unless you turn it off. Also try putting your board close to the WIFI router. It could be some interference issue. |
So i finally got it to run,,,the solution was simple, change the ip address, i used the one the the simple web server provided and change that in the WAAC code. ran first try! however the NTP time service is still down. ive tryed changing it via web interface, but still no luck...is there a better place to change the server in the code? |
it appears that im working on locan network with no access to internet for time server? |
also, is there a reason i have to set up all devices each time i load the web page? |
Oh, can you surf the internet on your network? The Time Server is on the internet.
The board must have reseted, lost power, or crashed. When that happens, all the settings in memory is lost. |
yes i can access the internet on my network, so the current settings are not stored? then if a reset is needed then you must set up the web page again?. would there be a good way to save the setting is spiffs if needed? i can work with it without saving, but cant use times without time server. im still a little lost in this code! |
I was going to make a way to save the settings to a text file on the SD card and restore on reset but it was too time consuming. I might revisit that if I have time. It's just tedious work. You can hard code your devices into the code in the Setup() function by instantiating the Classes and pass in the parameters as well. So that way, on restart, it would create the settings but you need to know the code pretty well by reading what each class needs as parameters. On the time server, you should be able to change in the settings page but it you need to find the code for it it's in |
so after playing around with this foe a week or so, its a pretty amazing piece of work. How much would it take to be able to save all settings from web page to spiffs? that way if a reset is needed or if you wanted to run your vivarium off line you could...i imagine that if a heater was on, and you lost network access for whatever reason, then the function to turn off heater at ? time or ? temp would not work. so over heating is a possibility. or imagine a mist pump...could flood a tank... or am i not seeing this right? so if the settings were stored in spiffs. then it would have all the info to keep running if a connection dropped...Again, I'm not a code guy, but I'm learning ...slowly through... |
Cool, glad it's working.. So you got the Network time to work? I can save the settings to the SD card, or whatever (spiffs). It has to be formatted a specific way to work. |
Hi, all I want to say that this is a great project especially when you see how much time and effort took to create this!!! I want to share some issues that I had when I was trying to compile this. I had the same issue as waltdavis... |
This will not compile in Arduino IDE. i first tried on the current version and had many compile errors. So after reading more about it i saw your mention of needing version 1.8.1. i uninstalled newer version and installed 1.8.1... still throws a lot of errors during compile. none of wich i can figure out as the code is pretty complex..any help would be greatly appreciated
createHallSensor' was not declared in this scope
'class OneWireSensor' has no member named 'getLowerTarget'
these are the first two errors..
The text was updated successfully, but these errors were encountered: