| 688 | } |
| 689 | |
| 690 | bool sendAPSegmentedData(const uint8_t* dst, String data, uint16_t icons, bool inverted, bool local) { |
| 691 | struct pendingData pending = {0}; |
| 692 | memcpy(pending.targetMac, dst, 8); |
| 693 | pending.availdatainfo.dataType = DATATYPE_UK_SEGMENTED; |
| 694 | pending.availdatainfo.dataSize = icons << 16; |
| 695 | memcpy((void*)&(pending.availdatainfo.dataVer), data.c_str(), 10); |
| 696 | pending.availdatainfo.dataTypeArgument = inverted; |
| 697 | pending.availdatainfo.nextCheckIn = 0; |
| 698 | pending.attemptsLeft = MAX_XFER_ATTEMPTS; |
| 699 | Serial.printf(">AP Segmented Data %02X%02X%02X%02X%02X%02X%02X%02X\r\n\0", dst[7], dst[6], dst[5], dst[4], dst[3], dst[2], dst[1], dst[0]); |
| 700 | if (local) { |
| 701 | return queueDataAvail(&pending, true); |
| 702 | } else { |
| 703 | queueDataAvail(&pending, false); |
| 704 | udpsync.netSendDataAvail(&pending); |
| 705 | return true; |
| 706 | } |
| 707 | } |
| 708 | |
| 709 | bool showAPSegmentedInfo(const uint8_t* dst, bool local) { |
| 710 | struct pendingData pending = {0}; |
no test coverage detected