Skip to main content

getSerialNumber()

Returns a string containing the serial number for the connected Aila hardware.

If the call succeeds, the serial number is returned. If the call fails, an empty string is returned.

AilaCordovaPlugin.getSerialNumber()

Returns​

Promise that resolves with a string containing the hardware serial number.

Example​

AilaCordovaPlugin.getSerialNumber()
.then((serialNumber) => {
console.log('Hardware Serial Number:', serialNumber);
});