Problems with attatchment in i!EquipmentMonitor
Jeff
Posts: 374
I'm using i!EquipmentMonitor to send emails to me. I'd like to backup all of my system data every night, I have several settings you can change and sort between and I'd like to have them backed up just in case. (Lets be honest, I'm doing this because I decided I wanted to learn how to write to a file in the flash memory)
I'm generating a file called backupdata.txt. It is emailing correctly as an attatchment, but the data inside is getting messed up. The data file on the Master displays one way, the data file that gets sent through email appears to drop two characters after every '=' that appears.
I'm attaching both files, can anyone help me figure out what would be causing this?
J
I'm generating a file called backupdata.txt. It is emailing correctly as an attatchment, but the data inside is getting messed up. The data file on the Master displays one way, the data file that gets sent through email appears to drop two characters after every '=' that appears.
I'm attaching both files, can anyone help me figure out what would be causing this?
J
0
Comments
http://cr.yp.to/docs/smtplf.html
If it is a LF (decimal 13) or (hex $0A) this function will replace it with CRLF or carriage return line feed.
You'll need to create the constants LF and CRLF ;
My guess is that its not actually the 13 thats causing the problem, because the letters St, HQ, Je, and HQ are eliminated in exactly the same manner. I'll try your function a little later today just in case.
J
J
A line that should read
EMAIL1=HQS-DG-lst-AMX_Alerts@uscg.mil
reads
EMAIL1=S-DG-lst-AMX_Alerts@uscg.mil
A line that should read
EMAIL2=jeffrey.d.mcaleer@uscg.mil
reads
EMAIL2=ffrey.d.mcaleer@uscg.mil
A line that should read
SNDEM1=1
causes more problems. Its actually "'SNDEM1=1',13,10" Somewhere in this process, two characters after every = are being deleted. This means that the ascii 1 in this line is being deleted, but also the decimal 13, leaving the 10 hanging by itself, which is causing problems, not to mention the fact that I've completely lost the data itself (whether its a 1 or a 0).
J