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
Remote Sensor some help
Re: Remote Sensor some help
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.