Witura WT-9001 IP65 Especificações Página 71

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 82
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 70
55
//DOOR = CLOSE
else{
//LOCK_ON = TRUE
if(LOCK_ON){
GSM_tx(hpNum,msg7,sizeof(msg7)-1);
}
//LOCK_ON = FALSE
else{
GSM_tx(hpNum,msg8,sizeof(msg8)-1);
}
}
}
}
void sec_adminRight(sms_t* sms){
if(txtComp(!sms->senderNum,admin,12)){
GSM_tx(sms->senderNum,secAdmin,sizeof(secAdmin));
return;
}
if(txtComp(sms->txt,cmdRst,5)){
ALARM = FALSE;
LEDS_off(4);
if(isDoorOpen()){
sec_unlock();
}
else{
sec_lock();
}
}
else{
GSM_tx(sms->senderNum,secRstErr,sizeof(secRstErr));
return;
}
sec_updateStatus(sms->senderNum);
}
void sec_userRight(sms_t* sms){
BOOL USER_EXIST = FALSE;
for(uint8_t userID=0;userID<MAX_USER;userID++){
if(txtComp(sms->senderNum,&user[userID][0],12)){
USER_EXIST = TRUE;
USER_ID = userID;
break;
}
Vista de página 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 ... 81 82

Comentários a estes Manuais

Sem comentários