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

Method getAPList

ESP32_AP-Flasher/src/udp.cpp:156–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void UDPcomm::getAPList() {
157 APlist APitem;
158 APitem.src = wm.localIP();
159 strcpy(APitem.alias, config.alias);
160 APitem.channelId = curChannel.channel;
161 APitem.tagCount = getTagCount();
162 APitem.version = apInfo.version;
163 wsSendAPitem(&APitem);
164
165 if (config.alias == 0) {
166 xTaskCreate(autoselect, "autoselect", 5000, NULL, 2, NULL);
167 }
168
169 uint8_t buffer[sizeof(struct APlist) + 1];
170 buffer[0] = PKT_APLIST_REQ;
171 memcpy(buffer + 1, &APitem, sizeof(struct APlist));
172 writeUdpPacket(buffer, sizeof(buffer), UDPIP);
173}
174
175void UDPcomm::netProcessDataReq(struct espAvailDataReq* eadr) {
176 uint8_t buffer[sizeof(struct espAvailDataReq) + 1];

Callers 2

init_webFunction · 0.80
setAPchannelFunction · 0.80

Calls 5

strcpyFunction · 0.85
getTagCountFunction · 0.85
wsSendAPitemFunction · 0.85
memcpyFunction · 0.85
localIPMethod · 0.80

Tested by

no test coverage detected