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
| 0 0 0
Asked on 7/26/19, 3:56 PM
0
vote
171 Views

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
24
| 0 0 0
Answered on 9/14/19, 6:52 PM
0
vote

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

Tom
Tom
5450
| 0 0 1
Answered on 8/12/19, 7:17 AM
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: 171 times
Last updated: 9/14/19, 6:52 PM