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

Function segmentedShowIp

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

Source from the content-addressed store, hash-verified

804#endif
805}
806void segmentedShowIp() {
807 IPAddress IP = wm.localIP();
808 char temp[12];
809 vTaskDelay(2000 / portTICK_PERIOD_MS);
810 sendAPSegmentedData(apInfo.mac, (String) "IP Addr", 0x0200, true, true);
811 vTaskDelay(2000 / portTICK_PERIOD_MS);
812 sprintf(temp, "%03d IP %03d", IP[0], IP[1]);
813 sendAPSegmentedData(apInfo.mac, (String)temp, 0x0200, true, true);
814 vTaskDelay(2000 / portTICK_PERIOD_MS);
815 sprintf(temp, "%03d IP %03d", IP[2], IP[3]);
816 sendAPSegmentedData(apInfo.mac, (String)temp, 0x0200, true, true);
817 vTaskDelay(2000 / portTICK_PERIOD_MS);
818}
819
820bool bringAPOnline(uint8_t newState) {
821#ifdef BLE_ONLY

Callers 1

APTaskFunction · 0.85

Calls 2

sendAPSegmentedDataFunction · 0.85
localIPMethod · 0.80

Tested by

no test coverage detected