#include <SoftwareSerial.h>
#define TX 12
#define RX 23
#define ask 3
#define ER_LED 12
String dataline = "605030";
const byte code = 60;
SoftwareSerial syserial(RX, TX); // RX, TX
void setup() {
// put your setup code here, to run once:
syserial.begin(57600);
Serial.begin(57600);
}
void loop() {
// put your main code here, to run repeatedly:
//syserial.println(dataline); //NO
//syserial.println(28, DEC); //ok for numbers
Serial.println(dataline.length());
for (int i = 0; i < dataline.length(); i++)
{
syserial.print((char)dataline[i]);
}
syserial.println();
//syserial.write(234);
//syserial.print('<');
delay(4000);
}
#include <SoftwareSerial.h>
#define TX 12
#define RX 23
const byte ask = 3;
bool com_end;
#define ER_LED 7
#define AC_LED 5
SoftwareSerial syserial(RX, TX); // RX, TX
void setup() {
// put your setup code here, to run once:
syserial.begin(57600);
Serial.begin(57600);
}
void loop() {
// put your main code here, to run repeatedly:
while (syserial.available())
{
Serial.println(syserial.read());
}
delay(100);
}