# wmpf.getDeviceSerialNumberSync()

Get the device's SN code - Synchronous return

# parameter

nothing

# Return value

# Object res

attribute type Introductions
serialNumber string Sn Code. On failure, the interface will throw error

# sample code

try {
  let res = wmpf.getDeviceSerialNumberSync()
  console.log(res.serialNumber)
} catch (and) {
  console.log(and)
}