Remote Sensor some help

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Marazmas
Posts: 1
Joined: Mon Dec 14, 2009 2:43 am

Remote Sensor some help

Post by Marazmas » Mon Dec 14, 2009 3:02 am

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

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Re: Remote Sensor some help

Post by christian » Tue Dec 22, 2009 5:07 pm

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.

Post Reply