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

Function sendAPSegmentedData

ESP32_AP-Flasher/src/newproto.cpp:690–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690bool 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
709bool showAPSegmentedInfo(const uint8_t* dst, bool local) {
710 struct pendingData pending = {0};

Callers 4

notifySegmentedFlashFunction · 0.85
segmentedShowIpFunction · 0.85
drawNewFunction · 0.85
updateTagImageFunction · 0.85

Calls 4

memcpyFunction · 0.85
queueDataAvailFunction · 0.85
printfMethod · 0.80
netSendDataAvailMethod · 0.80

Tested by

no test coverage detected