Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- long SequenceNum;
- void setup() {
- Serial.begin(9600);
- Serial1.begin(57600);
- SequenceNum = 1;
- }
- void loop() {
- Serial.print("Sending Command: M408 S2 R");
- Serial.println(SequenceNum, DEC);
- Serial1.print("/M408 S2 R");
- Serial1.print(SequenceNum, DEC);
- Serial.print("Received: ");
- Serial.println(Serial1.read());
- delay(500);
- SequenceNum = SequenceNum + 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement