Line 43... |
Line 43... |
43 |
for(n=0;n<32;n++) rf01_data[n]='$'; |
43 |
for(n=0;n<32;n++) rf01_data[n]='$'; |
44 |
rf01_receive(); |
44 |
rf01_receive(); |
45 |
char* buf = (char*) rf01_data; |
45 |
char* buf = (char*) rf01_data; |
46 |
buf[31]=0; |
46 |
buf[31]=0; |
47 |
//if ((buf[0]=='$')&&(buf[3]=='\n')) |
47 |
//if ((buf[0]=='$')&&(buf[3]=='\n')) |
48 |
Serial.println(rf01_data); |
48 |
Serial.println(buf); |
49 |
for(n=0;n<32;n++) {Serial.print(rf01_data[n], HEX); Serial.print(' ');} |
49 |
for(n=0;n<32;n++) {Serial.print(rf01_data[n], HEX); Serial.print(' ');} |
50 |
Serial.println(); |
50 |
Serial.println(); |
51 |
|
51 |
|
52 |
delay(700); |
52 |
delay(10); |
53 |
|
53 |
|
54 |
} |
54 |
} |