executeCommandHook Every command sent by the CA is interpreted by this method. The outcome could be a change in mapOut or a value returned in the callback (using node.js conventions) that will be sent back to the CA.

mainHook Gives a chance to this device after reading sensors and executing commands to do some periodic tasks. This hook is always invoked, i.e., even if there were no commands.

Internal methods that can only be customized with config properties:

GC_responses Responses that have been ack by the CA do not need to be sent again.