What is the "error_" for?

When you call a command, that command returns error type.
The command return value can tell you
- "there was no error"
- "error, you did something wrong"
- "error, I did something wrong"
- "error, I am not turned on"
- "error, argument was wrong"
.... etc

'error_t' is for telling you what kind of error has happened.

2. I cann't unstand the sentences:
SUCCESS was a non-zero error code in TinyOS 1.x, while FAIL was non-zero. In TinyOS 2.x, SUCCESS is equal to a zero error code, while other error codes are non-zero.

in t1, SUCCESS==1, FAIL==0.

in t2, SUCCESS==0, FAIL==1..... and 2,3,4,etc are also error types.

Thanks

- jpaek


--
Jeongyeup Paek
Ph.D. student
Embedded Networks Laboratory
Department of Computer Science
University of Southern California
http://enl.usc.edu/~jpaek
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to