On Wed, Oct 6, 2021 at 6:58 PM Andrea <strappatoand...@gmail.com> wrote:
> Hi everyone, > > I need to send a string from PC to mote (serial communication). How can I > define the payload message as string type? > its C nx_uint8_t str[str_size]; 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 <https://go.microsoft.com/fwlink/?LinkId=550986> per > Windows > > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Eric B. Decker Senior (over 50 :-) Researcher i love eating my family and not using commas (:-)
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help