Hi all,

I have a Tinyos1.x code and I want to port it in tinyos2.x.
To do it, I folow some instructions. One of these instructions is to add the
NX network type for all fields of a structure in order to  be independent of
any type of platform.

I have in  the original code in the  Header File  a snippet of code like
this:


typedef struct Data_Packet_t {

  long index;
  uint8_t data[DATA_SIZE];
  uint8_t mac[8];
  uint8_t dis[8];
} Data_Packet_t;

*In order to change it to T2, I add the following changes,*
**
**
typedef nx_struct Data_Packet_t {

  nx_long index;
  nx_uint8_t data[DATA_SIZE];

  nx_uint8_t mac[8];
  nx_uint8_t dis[8];

} Data_Packet_t;

This modification was accepted by the compiler but I have many errors
related to this new data types in the other files(.nc)

For example, if I declare a variable p :  Data_Packet_t p; in another file ,
it mentions that p : is undeclared.


What Should I take into consideration other than modifying data types in the
Header File?

Thanks ,

-- 
Wafa Ben Jaballah
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to