Send String by SoftwareSerial

0

Hello

I have a string and would like to send it via Serial. But it is giving error and not compiling.

My code:

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

void setup() {

}

void loop() {

swSer.write(variavel);

}
    
asked by anonymous 11.05.2016 / 20:18

0 answers