Hi all, is it possible to define the TOS_NODE_ID variable within the Makefile file?? I have tried to do it by adding a flag, like this:
CFLAGS+="-DTOS_NODE_ID=255" But on compilation I get the following error: t...@tos-desktop:~/workspace/src/Sensor$ make telosb install mkdir -p build/telosb compiling SensorAppC to a telosb binary ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22 "-I../AES/" "-I../Cipher/" "-DTOS_NODE_ID=255" "-DNODE_SERIAL_NUMBER=0x123456789ABCDEF" -DIDENT_APPNAME=\"SensorAppC\" -DIDENT_USERNAME=\"tos\" -DIDENT_HOSTNAME=\"tos-desktop\" -DIDENT_USERHASH=0xfbeb08a2L -DIDENT_TIMESTAMP=0x4b603581L -DIDENT_UIDHASH=0x4a0248f8L SensorAppC.nc -lm /opt/tinyos-2.1.0/tos/system/tos.h:27: syntax error before `255' <<------------------------------------------------- In file included from SensorAppC.nc:9: In component `SensorC': SensorC.nc: In function `generateChallResp': SensorC.nc:61: warning: suggest parentheses around + or - inside shift SensorC.nc: In function `Receive.receive': SensorC.nc:105: warning: passing argument 2 of `Packet.getPayload' makes integer from pointer without a cast /opt/tinyos-2.1.0/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning "*** LOW POWER COMMUNICATIONS DISABLED ***" make: *** [exe0] Error 1 Any ideas? Thank you -- Ruben _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help