Hi everyone,

I need to send a string from PC to mote (serial communication). How can I define the payload message as string type?

The payload type is defined with the following code: (It is the same code of TestSerial application, already installed with TinyOS)

 

#ifndef TEST_SERIAL_H

#define TEST_SERIAL_H

 

typedef nx_struct test_serial_msg {

     nx_uint16_t counter; //Here the string message must be defined, How can I do that?

} test_serial_msg_t;

 

enum{

   AM_TEST_SERIAL_MSG = 0x89,

};

 

#endif

 

Inviato da Posta per Windows

 

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to