AllWize / allwize

AllWize Library
GNU Lesser General Public License v3.0
18 stars 7 forks source link

Importing and installing AllWize library higher than 1.0.3 fails silently #10

Open alignan opened 5 years ago

alignan commented 5 years ago

Maybe it is just me, but when I try to install the AllWize library via the Manage Library option of the Sketch menu, it shows the AllWize library and versions to install, and fails silently if attempting to install any version higher than 1.0.3 (e.g. 1.1.0 and 1.1.1).

Not sure which is the recommended tho...

My Arduino IDE version is 1.8.2 if it helps.

alignan commented 5 years ago

Maybe related to using an older library version...

/Users/antonio.lignan/Documents/Arduino/libraries/AllWize/src/AllWize.cpp: In member function 'void AllWize::_reset_serial()':
/Users/antonio.lignan/Documents/Arduino/libraries/AllWize/src/AllWize.cpp:114:25: error: 'class SoftwareSerial' has no member named 'end'
             _sw_serial->end();
                         ^

BTW I'm trying to compile the wize2mqtt example

alignan commented 5 years ago

Downloading the version 1.1.1 as .zip and installing manually fixed also all my compilation errors for the MKR-like version

xoseperez commented 5 years ago

Check your Arduino Core for ESP8266 version. It must be 2.4.0 or higher.

alignan commented 5 years ago

The current ESP8266 version installed is v.2.5.2, I just also updated the Arduino IDE to v1.8.9 and the problem is the same, even with the new AllWize v1.1.2. When clicking install it attempts to install the library but it is not shown as installed afterwards, but 1.0.3 works.

Screen Shot 2019-07-31 at 22 04 38

However, as before, downloading as .zip file and importing as such does the trick.

Screen Shot 2019-07-31 at 22 07 03
alignan commented 5 years ago

Just in case we are not talking about the same ESP8266 library (God, I hate Arduino):

Screen Shot 2019-07-31 at 22 09 11
xoseperez commented 5 years ago

This is probably due to #9. I have just committed version 1.1.3 that should solve the issue. It may take a few hours before Arduino tracks the change and the version is available in the Library Manager.