Hi everyone!
I use AltSoftSerial (AltSoftSerial Library, for an extra serial port)
I can print data by AltSoftSerial but I can get data by AltSoftSerial, I dont know what is the mistake.
This is the code:
#include <AltSoftSerial.h>
AltSoftSerial altSerial;
void setup() {
Serial.begin(9600);
Serial.println("AltSoftSerial Test Begin");
altSerial.begin(9600);
altSerial.println("Hello World");
}
void loop() {
char c;
if (Serial.available()) {
c = Serial.read();
altSerial.print(c);
}
if (altSerial.available()) {
c = altSerial.read();
Serial.print(c);
}
}
Please help me, I need this library because use GSM.h also in my project.
Thank all of you alot!