9: // Status update
                        break;

                    default:
                        log(
                            `Unknown message: ${Array.from(data)
                                .map((b) => b.toString(16).padStart(2, "0"))
                                .join(" ")}`,
                        );
                }
            }

            async function scanForDevices() {
                if (!navigator.bluetooth) {
                    statusDiv.textContent =
                    