[Tinyos-help] String datatype in TinyOS

Bipin bipinkunjumon777 at gmail.com
Sun Dec 1 20:02:40 PST 2013


Please..
           First  you  should  have  to go through  the  basic  of  NesC.
Here  you  want  to  send  some  string to  other node  so  you  should  
have  to  create  String [ char  arrary].

    unsigned char input[16]=
{'H','E','L','L','O','W','O','R','L','D','A','E','S','1','2','8'};

You  Can  create  a  string  like  that  and  simply  put  the  string  in 
your  payload   data  structure...... and  send  it  by  using  AMSend 
Component.  Please note  that..  This  is  not  exactly a  c  language... 
this  is an  Embedded  based  thing....If  you  just  taking  care  of  the 
data  as  hexadecimal   then  it  will  be  very  much  easier  for  doing 
program in NesC




--
View this message in context: http://tinyos-help.10906.n7.nabble.com/String-datatype-in-TinyOS-tp23893p23897.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.


More information about the Tinyos-help mailing list