# wmpf.getDeviceSerialNumber(Object object)

Get the device's SN code - Asynchronous return

# parameter

# Object object

attribute type Default value Required Introductions
success function no Interface calls a successful callback function
fail function no Interface call failed callback function
初始值 function no The callback function at the end of the interface call (the call is executed on success or failure)

# object.success callback

# parameter

# Object res

attribute type Introductions
errMsg string Success: ok , Error: fail
serialNumber string Sn code

# sample code

wmpf.getDeviceSerialNumber({
  success: function(res) {
    console.log(res.serialNumber)
  },
  fail: function(res) {
    console.log(res)
  }
})