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

Function BLE_reportProgress

ESP32_AP-Flasher/src/ble_writer.cpp:89–96  ·  view source on GitHub ↗

Emits a websocket log line that starts with the tag MAC (same MAC byte order as processBlockRequest). The web frontend blinks the tag card yellow ("loading") for every such line, so this gives per-block progress feedback during a BLE upload instead of only the single flash at the very end.

Source from the content-addressed store, hash-verified

87// ("loading") for every such line, so this gives per-block progress feedback
88// during a BLE upload instead of only the single flash at the very end.
89static void BLE_reportProgress(const char* what, uint32_t value) {
90 char buffer[80];
91 sprintf(buffer, "%02X%02X%02X%02X%02X%02X%02X%02X BLE %s %u",
92 BLE_curr_address[7], BLE_curr_address[6], BLE_curr_address[5], BLE_curr_address[4],
93 BLE_curr_address[3], BLE_curr_address[2], BLE_curr_address[1], BLE_curr_address[0],
94 what, value);
95 wsLog((String)buffer);
96}
97
98static void notifyCallback(
99 BLERemoteCharacteristic* pBLERemoteCharacteristic,

Callers 1

BLETaskFunction · 0.85

Calls 1

wsLogFunction · 0.85

Tested by

no test coverage detected