-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
questionFurther information is requestedFurther information is requested
Description
While scanimage -L correctly lists one device: device brother5:bus1;dev1' is a Brother ADS-1700W USB scanner
sane_get_devices() returns an empty device list in the code below:
import { SANEStatus, libsane } from "sane-wasm";
libsane({
debugSANE: true,
debugUSB: true,
debugFunctionCalls: true,
}).then(async (sane) => {
const init = sane.sane_init();
console.log(init.status === SANEStatus.GOOD);
const state = sane.sane_get_state();
console.log(state);
let { status, devices } = await sane.sane_get_devices();
console.log(status === SANEStatus.GOOD, devices);
await sane.sane_exit();
});
The output of the code on my machine is
true
{
initialized: true,
version_code: 16842753,
version: { major: 1, minor: 1, build: 1 },
open: false
}
true []
I would expect the device list to contain all devices listed by scanimage -L, instead of being empty.
I am on node v21.7.0, on EndeavourOS (an Arch-based Linux distro).
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested