That's pretty basic 'C' programming. See: http://en.wikibooks.org/wiki/C_Programming
However TOS and/or MIG may be reluctant to deal with arrays of long ints. Did you have specific errors when trying to make a message type using MIG with your array? If you haven't gotten that far, then you should read through the doc/tutorial to get a better idea of how things work. You don't need to modify AM.h or TOSBase, just make a message struct to "overlay" on the data[] field of TOS_Msg. See the demo apps that send messages, like Oscilloscope, for examples. MS [EMAIL PROTECTED] wrote: > Hi to all, > I am a beginer on that kind of programming and i am currently implementing an > application in tossim in which i have to send, with BD a packet to the BS > (using the TOS_Msg), a uint32_t[1][2] array. Could anyone help me on how to do > this? I have to modify the AM.h, the tranceive and TOS_base code in order to > do > this? I have some trouble on how to put the array in the message and how to > retrieve the values in TOS_base for a further procession. > Thanks in advance. > > Noutsis Giorgos > University of Thessaly, Greece > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Platform: WinXP/Cygwin TinyOS version: 1.x, Boomerang Programmer: MIB510 Device(s): Mica2, MicaZ, Tmote Sensor board: homebrew _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
