-
Notifications
You must be signed in to change notification settings - Fork 638
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
Compile errors using Arduino in Windows #73
Comments
BUTTON_PUSHBUTTON is declared in the DebounceEvent library. Check if you have it installed (https://bitbucket.org/xoseperez/debounceevent). |
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): i think i got it installed, i think if i didn't i'd get a message about the #include <DebounceEvent.h> line. I've opened the DebounceEvent.h file, don't see a declaration there of the BUTTON_PUSHBUTTON. |
My bad, I forgot to update the ZIP link to the 1.1.0 version of DeboounceEvent library. |
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): thanks! C:\Users\Ido\AppData\Local\Temp\untitled2112280827.tmp\sketch_feb17a\espurna\relay.ino: In function 'bool relayStatus(unsigned char, bool, bool)': relay:145: error: 'relayDomoticzSend' was not declared in this scope
exit status 1 i'm probably not activating something.. |
Weird, that method is defined in the same file, albeit a few lines below. You are using Arduino IDE, right? |
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): yes |
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): I've cancelled the domoticz option from the arduino.h file, everything else seems to compile ok. |
Don't have access to a W10, but I just tried on W7 with and Arduino IDE fresh install and everything compiled fine. |
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): what did you activate in the arduino.h file? because i tried compiling thru win7 - and got the same relayDomoticzSend error msg as in win10. without the domoticz it compiles just fine. |
Only the target board. Can you test it adding this line to the
|
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): Hi i've downloaded the newest version of the files, tried to compile again with the line you told me to add. sketch\espurna.ino.cpp.o: In function `relayWS()': D:\ido\Downloads\xoseperez-espurna-6ed59b537532\xoseperez-espurna-6ed59b537532\code\espurna/button.ino:53: undefined reference to `relayDomoticzSend(unsigned int)' sketch\espurna.ino.cpp.o: In function `relayStatus(unsigned char, bool, bool)': D:\ido\Downloads\xoseperez-espurna-6ed59b537532\xoseperez-espurna-6ed59b537532\code\espurna/button.ino:53: undefined reference to `relayDomoticzSend(unsigned int)' collect2.exe: error: ld returned 1 exit status exit status 1 |
Wow, that's the same reference somewhere else. Did you copy the line in the prototype.h file? Also, in the beginning it says "Generic ESP8266 Module" but at the end it is a "Generic ESP8285 Module" ??? BTW, if you want to use the web interface with current version of ESPurna you will need more than 64Kb of flash for the SPIFFS partition. If your board has only 512Kb you won't we able to fit the web in it. With next release you will be able to embed the web interface in the firmware and everything will fit in 512Kb (no OTA thou), but right now it's not possible. |
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): I did. As for the board properties, I'll update them and try again later. |
I cannot reproduce the error using Windows 7 and Arduino 1.8.0 or 1.8.1. My guess is that there is something that prevents the builder from generating the prototypes for the methods in the files. Can anyone facing this issue attach the preprocessed sketch. It should be in |
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): that is my arduino.h filie looks like. is it ok? //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- //#define DEBUG_PORT Serial //-------------------------------------------------------------------------------- //#define D1_RELAYSHIELD //-------------------------------------------------------------------------------- #define ENABLE_DHT 1 |
Found! Can you test changing the file
(changing the #ifdef by #if) Thank you! |
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): I'll try it. |
Yes it does. If you change the line I said you will be able to build it without Domoticz support too. |
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): But I'll still be able to work with domoticz? |
The firmware supports domoticz by default. If you uncomment the
it will build it without support. |
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): I see. So I've made a mess. I could've just ignore that domoticz line and I would get what I wanted. |
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): i've managed to flash the device ok. |
Did you flash the filesystem image too? https://bitbucket.org/xoseperez/espurna/wiki/Filesystem.md |
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): got it. works now. thanks. |
Great. Will release 1.6.5 with these changes very soon. |
Fixed with version 1.6.5 |
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): Didn't have much time play with it yet, but after changing the password I seem to be locked out of the device. Is there a hard reset functionality (long press on the button or something) or do I need to flash it again? |
Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown): On terminal / usb -
Should allow you to log on again. Later Ferdie |
Original comment by Ido (Bitbucket: Guru_shastri, GitHub: Unknown): I'm sorry. This is just to hard. |
There is no hard reset and I realise it's a needed feature. You will have to connect via serial and change the password like @F-Fish says. Right now there is no other way. I'm sorry. |
Added issue #87 to implement hard-reset option. |
Originally reported by: Ido (Bitbucket: Guru_shastri, GitHub: Unknown)
Hi,
I've tried following your instructions, but its not easy.
in the compiling stage i'm getting an error msg:
Arduino: 1.6.12 (Windows 10), Board: "Generic ESP8285 Module, 80 MHz, 115200, 1M (128K SPIFFS)"
In file included from sketch\config/all.h:6:0,
C:\Users\Ido\AppData\Local\Temp\untitled2112280827.tmp\sketch_feb17a\espurna\button.ino: In function 'void buttonSetup()':
sketch\config/hardware.h:67:33: error: 'BUTTON_PUSHBUTTON' was not declared in this scope
and it goes on like that, it seems that the button1_mode is not properly defined. what am i missing?
thanks for all your work!
The text was updated successfully, but these errors were encountered: