MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / waitCmdReply

Function waitCmdReply

ESP32_AP-Flasher/src/serialap.cpp:100–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 }
99}
100bool waitCmdReply() {
101 uint32_t val = millis();
102 while (millis() < val + 200) {
103 switch (cmdReplyValue) {
104 case CMD_REPLY_WAIT:
105 break;
106 case CMD_REPLY_ACK:
107 lastAPActivity = millis();
108 if (apInfo.isOnline == false)
109 setAPstate(true, AP_STATE_ONLINE);
110 return true;
111 break;
112 case CMD_REPLY_NOK:
113 lastAPActivity = millis();
114 return false;
115 break;
116 case CMD_REPLY_NOQ:
117 lastAPActivity = millis();
118 return false;
119 break;
120 }
121 vTaskDelay(1 / portTICK_RATE_MS);
122 }
123 return false;
124}
125
126#if (AP_PROCESS_PORT == FLASHER_AP_PORT)
127int8_t APpowerPins[] = FLASHER_AP_POWER;

Callers 7

sendBlockFunction · 0.85
sendDataAvailFunction · 0.85
sendCancelPendingFunction · 0.85
sendChannelPowerFunction · 0.85
sendPingFunction · 0.85
sendGetInfoFunction · 0.85
sendHighspeedFunction · 0.85

Calls 1

setAPstateFunction · 0.85

Tested by

no test coverage detected