Go Down

Topic: Saving AT Command to SD Card (Read 138 times) previous topic - next topic


I hope someone could help me on saving the received text from the gsm to sd card. I have an attached file of my code.


Dumping a data stream from a serial source is as simple as:
Code: [Select]
// Open the file for writting first

byte data;

while (Serial.available())
  data = Serial.read();
  mySerial.write(data);//Forward what Serial received to Software Serial Port
  data = mySerial.read();
  Serial.write(data);//Forward what Software Serial received to Serial Port

This way data streams from both directions are logged and still correctly piped to each port.

Go Up