Monday, June 21, 2010

some more work

There are multiple events in the system: Communication, Timers, Proximity and Motion. Can we unify them to a generic events; after which all events would be handled in a uniform way. However, the emerson syntax may be different for them.

         Eg. for timeout events we have:

         system.timeout(30, callback)

         OR we could have

        timer_id = timerEvent(30);
        register_handler(timer_id,  callback);

need to think how we can get all the events to be treated the same way in the runtime

No comments:

Post a Comment