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

Function sendAvail

ESP32_AP-Flasher/src/ips_display.cpp:416–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416void sendAvail(uint8_t wakeupReason) {
417 struct espAvailDataReq eadr = {0};
418 uint8_t mac[6];
419 WiFi.macAddress(mac);
420 memcpy(&eadr.src, mac, 6);
421 eadr.adr.lastPacketRSSI = WiFi.RSSI();
422 eadr.adr.currentChannel = config.channel;
423#ifdef TFT_HW_TYPE
424 eadr.adr.hwType = TFT_HW_TYPE;
425#elif defined HAS_LILYGO_TPANEL || defined HAS_4inch_TPANEL
426 eadr.adr.hwType = 0xE2;
427#else
428 eadr.adr.hwType = (tft2.width() == 160 ? 0xE1 : 0xE0);
429#endif
430 eadr.adr.wakeupReason = wakeupReason;
431 eadr.adr.capabilities = 0;
432 eadr.adr.tagSoftwareVersion = 0;
433 eadr.adr.customMode = 0;
434 processDataReq(&eadr, true);
435}
436
437void yellow_ap_display_init(void) {
438#if defined HAS_LILYGO_TPANEL || defined HAS_4inch_TPANEL

Callers 3

handleWSdataFunction · 0.85
touch_loopFunction · 0.85
yellow_ap_touch_taskFunction · 0.85

Calls 3

memcpyFunction · 0.85
processDataReqFunction · 0.85
widthMethod · 0.80

Tested by

no test coverage detected