Skip to content

No SoftwareSerial lib for v2.4? #3596

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

Closed
JonSilver opened this issue Sep 11, 2017 · 11 comments
Closed

No SoftwareSerial lib for v2.4? #3596

JonSilver opened this issue Sep 11, 2017 · 11 comments

Comments

@JonSilver
Copy link

I note that SoftwareSerial has disappeared from core v2.4. If one needs to use SoftwareSerial for development, which library should now be used?

@devyte
Copy link
Collaborator

devyte commented Sep 12, 2017

@igrr I don't see SoftwareSerial under libraries in latest git. Is this intentional?

@igrr
Copy link
Member

igrr commented Sep 12, 2017

It gets included when building a boards manager package here: https://github.com/esp8266/Arduino/blob/master/package/build_boards_manager_package.sh#L63-L68

I just ran this script locally and the SoftwareSerial library ended up being included in the package. Not sure why this didn't happen with 2.4.0-rc1 package though.

As a workaround, you can download SoftwareSerial library as a zip file and then install it into the IDE using "install library from zip file" feature.

Will troubleshoot this when building the package next time, thanks for the report.

@igrr igrr self-assigned this Sep 12, 2017
@igrr igrr added this to the 2.4.0 milestone Sep 12, 2017
@JonSilver
Copy link
Author

Thanks @igrr - good to know it's not an intentional omission 🙂
And while I'm here, thanks for all your great work on the ESP8266 Arduino Core.

@devyte
Copy link
Collaborator

devyte commented Nov 25, 2017

@igrr I propose to have git build with softwareserial in a similar manner as lwip or axtls. I think having libs missing in the git build causes too much confusion.
What do you think?

@igrr
Copy link
Member

igrr commented Jan 1, 2018

Verified that this is fixed in latest git (and 2.4.0-rc2 has SoftwareSerial).

@igrr igrr closed this as completed Jan 1, 2018
@dragondaud
Copy link
Contributor

With a fresh install of the latest github release it is leaving an empty SoftwareSerial directory under libraries, which is generating errors:

Invalid library found in /Users/daud/Documents/Arduino/hardware/esp8266com/esp8266/libraries/SoftwareSerial: no headers files (.h) found in /Users/daud/Documents/Arduino/hardware/esp8266com/esp8266/libraries/SoftwareSerial

I am not using SoftwareSerial, but these errors were not present previously. Deleting the empty directory cures the problem.

@devyte
Copy link
Collaborator

devyte commented Dec 11, 2018

Were you playing with the ongoing release (tag 2.5.0-beta1), then tried rolling back?

@dragondaud
Copy link
Contributor

dragondaud commented Dec 11, 2018

No, it was a fresh clone, this morning, from github, followed by a get.py for the tools.

@d-a-v
Copy link
Collaborator

d-a-v commented Dec 11, 2018

This new SoftwareSerial directory in libraries directory is a git-submodule.
To populate it, use

git submodule update --init

@dragondaud
Copy link
Contributor

Gotcha! FYI: I just discovered that its not from the fresh clone, but when my script does git reset --hard origin/master that the errant directory is created. I thought that command would make sure any local changes were reset, but apparently it does more...

@phrxmd
Copy link
Contributor

phrxmd commented Jan 8, 2019

Here's a fix for the install docs to make it clearer what to do if you get errors related to SoftwareSerial: #5602.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants