tedp
Newbie level 3
Hello,
I'm trying to send an image to a phone using MMS. I am able to get to the point where my serial monitor says "CONNECT". From my understanding of the SIM900 MMS manual, that means that the module is now ready to receive data. I am not sure about how to get the module read the data. I am trying to get an image from the SD card to the module.
Right now, I'm using this to read from the SD card and send it to the SIM900 module:
File dataFile = SD.open("datalog.txt");
// if the file is available, write to it:
if (dataFile) {
while (dataFile.available()) {
Serial.write(dataFile.read());
}
dataFile.close();
}
It's not working. Eventually, the module waits there for the time specified in the AT command and prints "ERROR" on the serial monitor.
If anybody could offer some help, it would be GREATLY APPRECIATED!!
Thanks for your time,
Ted
I'm trying to send an image to a phone using MMS. I am able to get to the point where my serial monitor says "CONNECT". From my understanding of the SIM900 MMS manual, that means that the module is now ready to receive data. I am not sure about how to get the module read the data. I am trying to get an image from the SD card to the module.
Right now, I'm using this to read from the SD card and send it to the SIM900 module:
File dataFile = SD.open("datalog.txt");
// if the file is available, write to it:
if (dataFile) {
while (dataFile.available()) {
Serial.write(dataFile.read());
}
dataFile.close();
}
It's not working. Eventually, the module waits there for the time specified in the AT command and prints "ERROR" on the serial monitor.
If anybody could offer some help, it would be GREATLY APPRECIATED!!
Thanks for your time,
Ted