[Tinyos-help] String datatype in TinyOS

Jenis Modi jenis.modi at email.wsu.edu
Sun Dec 1 18:29:21 PST 2013


Why don't you try this link to search in Google:

https://www.google.com/search?q=tinyos+string+type&oq=tinyos+string+type&aqs=chrome..69i57.6131j0j1&sourceid=chrome&ie=UTF-8


Jenis
On 12/02/2013 03:04 AM, nivedita datta wrote:
> 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
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

-- 
Thanks.
Jenis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20131202/fb6621c9/attachment.htm 


More information about the Tinyos-help mailing list