I'm using sensor model on an PIR sensor based on the temperature sensor sample project, but when i send the occupancy state of PIR by calling sensorvalue() API, i recieved period occupancy state report on the gateway side, which is not same as expected. meanwhile, i can't monitor where my program is going. and i don't why my program send period report. i just send report when occupancy state of PIR sensor changed. why? troubling me
CSRmesh was not designed to be battery powered. It will send RF messages all the time
To see "what is going on" send debug messages to UART terminal
You can call my Skype nissim.test
This strange behavior is due to incorrect TimerDelete(). I delete the timer when timer expires, but why this happen is still a mystery.
what is bad with incorrect TimerDelete(). ?
Did you use this way ?
if (g_partial_buffer_timer_tid != TIMER_INVALID)
/* Kill the partial buffer timer. */
g_partial_buffer_timer_tid = TIMER_INVALID;