# equipment SN code
# wmpf.getDeviceSerialNumber
Get the device SN code - Asynchronous version
# sample code
wmpf.getDeviceSerialNumber({
success: function(res) {
console.log(res.serialNumber)
},
fail: function(res) {
console.log(res)
}
})
# wmpf.getDeviceSerialNumberSync
Get the device SN code - Synchronous version
# sample code
try {
let res = wmpf.getDeviceSerialNumberSync()
console.log(res.serialNumber)
} catch (and) {
console.log(and)
}