Hello friends . I have some part of my code like below ..
---------------------------------------------
if (!busy)
{
Sensor_Message_t *Local_t = (Sensor_Message_t *)(call
Send.getPayload(&pkt, sizeof(Sensor_Message_t)));
if (Local_t == NULL)
{
call Leds.led2Toggle();
return;
}
memcpy(Local_t, &Local, sizeof(Local));
if (call Send.send(&pkt, sizeof(Sensor_Message_t)) == SUCCESS)
{
busy = TRUE;
}
else
{
call Leds.led0Toggle();
}
}
--------------------------------------------------------------
Other part of code is about getting data from adc .. processing it n adding
it to "Sensor_Message_t Local" But here .. when i run program .. i am
finding that Local_t is NULL .. (Led2 is toggled). What might be the
problem ?? how should i resolve it ??
Thanks in advance
--
With Best Regards
Himanshu Barve
M.Tech Electrical Engineering (Power System)
IIT Kharagpur , West Bengal , India
Ph: - +91 9775201181
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help