| 154 | } |
| 155 | |
| 156 | void 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 | |
| 175 | void UDPcomm::netProcessDataReq(struct espAvailDataReq* eadr) { |
| 176 | uint8_t buffer[sizeof(struct espAvailDataReq) + 1]; |
no test coverage detected