Can't compile - missing softwareserial.h

Trying to work with a Nextion hmi and the code won't compile to upload. Error "softwareserial.h" not found. It doesn't show up in the libraries drop down menu, unless I select a board different than the d21g (ie if I change to the mega 2650, it's there) I've tried updating all the libraries from Indio and updated the IDE (from 1.8.3 to 1.8.9) I compiled this code in the past, and successfully uploaded it. But now I need to make some updates to the system.

Russ
Russ
17
| 2 1 1
Asked on 7/26/19, 3:56 PM
0
vote
3336 Views

hi, softwareserial is indeed not available on Arduino M0 type boards such as the Industruino D21G, for the reason that there are usually enough hardware serials available. so it should be relatively easy to re-write your code to use Serial on D0/D1 or Serial1 on D10/D5 ; also see this post https://industruino.com/forum/help-1/question/softwareserial-with-odriverobotics-712

if you can provide the library you are using, we can have a look

UPDATE Feb 2020: i have modified the Nextion library to work with RS485, see https://industruino.com/blog/our-news-1/post/nextion-hmi-with-industruino-42

this library will also compile without softwareserial now https://github.com/jyberg/Enhanced-Nextion-Library/issues/7

Tom
Tom
5675
| 1 1 3
Answered on 8/12/19, 7:17 AM
0
vote

Maybe this will help. Seems like a similar workaround was required.

 

https://industruino.com/forum/help-1/question/softwareserial-compile-file-not-found-error-workaround-with-d21g-want-to-connect-to-boltiot-device-704

Kelly Sprayberry
Kelly Sprayberry
34
| 2 1 2
Answered on 9/14/19, 6:52 PM
0
vote

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

58 follower(s)

Stats

Asked: 7/26/19, 3:56 PM
Seen: 3336 times
Last updated: 1/31/20, 6:24 AM