Witura WT-9001 IP65 Dokumentacja Strona 71

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 82
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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;
}
Przeglądanie stron 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 ... 81 82

Komentarze do niniejszej Instrukcji

Brak uwag