Hi David

I had a chance to test the BBFS on my telosb mote running TOS2 and I ran a
small app to use BFileWrite and BFileRead interfaces and they worked as
expected.

However, while bulding up an advanced application I required to know the
name of the file whenever I opened one (with BFileWrite or BFileRead) and I
found that the comments and the actual implementation are inconsistent.

For eg. in the interface BFileWrite
http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/rincon/tos/lib/blackbook/interfaces/BFileWrite.nc?view=markup
starting
line 94:

    / * Signaled when a file has been opened, with the errors
      * @param fileName - the name of the opened write file
      * @param len - The total reserved length of the file
      * @param error - SUCCSES if the file was opened successfully
      */
     event void opened(uint32_t len, error_t error);

The parameter fileName is absent from the event implementation. For
cross-checking I saw the BFileWriteP.nc in \opt\tinyos-
2.x-contrib\rincon\tos\lib\blackbook\core and found that the fileName is not
present in the actual implementation too. The same situation is present with
the events like appended, saved, closed.

Is it possible to include the fileName parameter when these events signal.
This would enable us to handle multiple opened files.egards

Regards
--
Mayur Maheshwari([EMAIL PROTECTED])

"Karmanye Vadhikaraste Ma Phaleshu Kadachana,
Ma Karma Phala Hetur Bhurmatey Sangostva Akarmani"
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to