Skip to main content

BTDeviceInstruction

BTDeviceInstruction resolves an integrated device's manual from DEVICE_INSTRUCTION_PDFS and renders it through PDFViewer.

Import it from @ovok/native/bt-device-instructions.

import { BTDeviceInstruction } from "@ovok/native/bt-device-instructions";
import { IntegratedDevices } from "@ovok/native/bt-management";

<BTDeviceInstruction
deviceType={IntegratedDevices.BP2}
onError={(error) => reportManualError(error)}
/>;

Props​

PropPurpose
deviceTypeAn IntegratedDevices enum value used to look up the manual.
PDF viewer propsAll PDFViewer props except sourceURI.
onErrorCalled when the mapping is empty or the PDF viewer reports an error.

Some integrated devices have no manual URL in the current mapping. In that case the component calls onError with a missing-manual error and the PDF viewer has no source to display. For a custom PDF source or tighter loading/error UI, use PDFViewer directly.

See Bluetooth device instructions for the subpath exports.