Re: [Tinyos-help] How to send string in TinyOS?

2021-10-06 Thread Eric Decker
On Wed, Oct 6, 2021 at 6:58 PM Andrea  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  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

[Tinyos-help] How to send string in TinyOS?

2021-10-06 Thread Andrea
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