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. _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help