Re: [Tinyos-help] Weird error when transmitting serial data

2007-08-24 Thread Hristo Bojkov
Hi Inderjit, I think that it works when you have uint8_t* p; because for some reason you have longer message than the length of TOS_Msg. Then only when you have defined the pointer, you have enough space. You have a check for valid length, and you compare with this expression MSG.length > TOSH_D

[Tinyos-help] Weird error when transmitting serial data

2007-08-13 Thread Inderjit Singh
Hi, I have a weird problem. I am running Tmote Sky with TinyOS 1.x app. I am transmitting serial data with following function: command result_t Comm.transmit(const COMM_Msg msg) { TOS_Msg tosMsg; uint8_t* p; //Valid msg type if sent by rfm? if(msg.destAddr != COMM_SERIAL && (msg.type != COMM_MS