Page 1 of 1

Remote Sensor some help

Posted: Mon Dec 14, 2009 3:02 am
by Marazmas
Hello,
When running file sensord.exe that was included with remote sensor I get the fallowing error: (error opening file "/tmp/sensor.csv" for append: [2] No such file or directory). As I understand this file gets data from sensor device on windows so that PHP side could read the data from file, or php scrip does it by itself?
In sensord.c ther's code line "static char *filename = "/tmp/sensor.csv";" as in windows program can't get directory with "/".
So is there any possibility that any of the devs could compile this file (don't have enought knowledge with this type compiling, only was working with Delphi), and mail to me or update in project page.
Thanks

Re: Remote Sensor some help

Posted: Tue Dec 22, 2009 5:07 pm
by christian
It should be sufficient to create the tmp directory on the same partition where sensord is started. Yes, windows uses backslashes instead of slashes, but fopen() should convert it accordingly.