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.
| 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. |
| 89 | static 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 | |
| 98 | static void notifyCallback( |
| 99 | BLERemoteCharacteristic* pBLERemoteCharacteristic, |