Witura WT-9001 IP65 Especificaciones Pagina 70

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 82
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 69
54
if(ALARM){
sec_adminRight(sms);
}
else{
sec_userRight(sms);
}
}
void sec_updateStatus(uint8_t* hpNum){
//ALARM = TRIGGERED
if(ALARM){
//DOOR = OPEN
if(DOOR_OPEN){
//LOCK_ON = TRUE
if(LOCK_ON){
GSM_tx(hpNum,msg1,sizeof(msg1)-1);
}
//LOCK_ON = FALSE
else{
GSM_tx(hpNum,msg2,sizeof(msg2)-1);
}
}
//DOOR = CLOSE
else{
//LOCK_ON = TRUE
if(LOCK_ON){
GSM_tx(hpNum,msg3,sizeof(msg3)-1);
}
//LOCK_ON = FALSE
else{
GSM_tx(hpNum,msg4,sizeof(msg4)-1);
}
}
}
//ALARM = IDLE
else{
//DOOR = OPEN
if(DOOR_OPEN){
//LOCK_ON = TRUE
if(LOCK_ON){
GSM_tx(hpNum,msg5,sizeof(msg5)-1);
}
//LOCK_ON = FALSE
else{
GSM_tx(hpNum,msg6,sizeof(msg6)-1);
}
}
Vista de pagina 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 81 82

Comentarios a estos manuales

Sin comentarios