Send String by Softwareserial

Asked

Viewed 43 times

0

Hello

I have a string and would like to send by Serial. But this giving error and not compiling.

My code:

#include <SoftwareSerial.h>
SoftwareSerial swSer(2, 3);
String variavel = "Hello";

void setup() {

}

void loop() {

swSer.write(variavel);

}
  • What error is displaying?

  • I’ve got it, thank you

  • @abduzeedo please adjust your question by putting your solution, so if someone has the same problem, already know how to solve.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.