Hi all, I have a scenerio that I would like to attain. Say that sensing data is disseminate to the data aggregator every 1 mins at the moment when the battery is full, but I would like that when battery remaining is less than half, it should change to event driven data dissemination, which means data is disseminate only if it surpass a certain level ( say, sensed temperature is more than 50 degree celcius). I have tried to read through the program and i believe that the key is in the file mannasim/sensorBaseApp.cc. If I can set an if statement, in the SensorBaseApp::getExpireTime() function to change the disseminating type after checking the remaining energy, would this work? I mean, would it be effective for all node, and also, would the type of dissemination be effective the next time?
Sincerely, Ravit