feat: Added getDeviceSerialNumber() API (#18)

This commit is contained in:
Pascal Bourque
2025-06-07 09:57:28 -04:00
committed by GitHub
parent d6971453d2
commit 6a88e52702
4 changed files with 169 additions and 0 deletions

View File

@@ -88,6 +88,9 @@ async function main() {
});
for (const device of Object.entries(devices.DevicesObj)) {
const serial = await client.getDeviceSerialNumber(device[0]);
rootLogger.info(`Serial number for device '${device[0]}' (${device[1].Name}): ${serial}`);
await client.startRealtimeUpdates(device[0]);
}
}