Hi All,

I wrote the following program:
one sensor sends data (an array of integers) and another sensor that
receives

I wrote the following header file that defines the structure of the message:


#ifndef RSSISAMPLESC_H
#define RSSISAMPLESC_H

#define SAMPLES_NUM 1002
#define MESSAGE_LEN 100

enum
{
  AM_RssiSamplesC = 6
};

typedef nx_struct RssiSamplesMsg
{
  nx_uint8_t moteid;
  nx_int8_t samples_packet[MESSAGE_LEN];
} RssiSamplesMsg;

#endif


My Problem is with the value of MESSAGE_LEN

If MESSAGE_LEN is equal to 100 then the sender sends the messages but the
reciever doesn't recieve anything ( the recieve event doesn't oocur)
If MESSAGE_LEN is equal to 25 then every thing works fine.

I guess this is got something with the size of message_t...
My question is: what is the maximum size of a message that I can send, and
how I can change this size?

Thanks,
Eli
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to