Does anyone have a macro to keep the Cisco Spark Units / SX80 in Halwake mode and not to go in to standby ?
I have seen several Macros to keep it from shutting down and to keep in out of halfwake mode but not to keep it in..
const xapi = require('xapi');
function resetHalfwake(state) {
if (state === "Halfwake") xapi.command("Standby ResetHalfwakeTimer", {Delay: '480'});
}
xapi.status.on("Standby State", resetHalfwake);