Hi,

I an trying to implement sensor communication & have created a packet
structure as follows:

*typedef nx_struct ctr{*
*nx_uint16_t counter;*
*char data[20];*
*nx_uint16_t counter2;*
*nx_uint16_t counter3;*
*} ctr;*

*typedef nx_struct BlinkToRadioMsg {*
*  nx_uint16_t nodeid;*
*  ctr counter_;*
*} BlinkToRadioMsg;*

Say, I want to send some string from one node to other, how do I do that?
Is there any way to initialize the char array other than initializing in a
loop?

Also, does NesC packet structure support any float & string data type??
I tried using the string datatype supported by C but it throws error saying:

*syntax error before `string'*

Please let me know how can I send float or string data type across the
nodes.
Thanks in advance for your time & effort.

Regards,
Nivedita Datta
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to