mirror of
https://github.com/bourquep/mysa-js-sdk.git
synced 2026-02-04 01:31:05 +00:00
feat: Added getDeviceSerialNumber() API (#18)
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user