source/lib/VBDiscover.js
// return the serial number from the M-SEARCH/NOTIFY response

return the serial number from the M-SEARCH/NOTIFY response
return the serial number from the M - SEARCH / NOTIFY response
function parseDeviceDetails(ipAddr, sn, data) {
  return {
    ipAddr:       ipAddr,
    serialNumber: sn || extract(/<serialNumber>(.*?)<\/serialNumber>/i, data),
    friendlyName: extract(/<friendlyName>(.*?)<\/friendlyName>/i, data),
    modelNumber:  extract(/<modelNumber>(.*?)<\/modelNumber>/i, data),
    modelName:    extract(/<modelName>(.*?)<\/modelName>/i, data)
  }
}
function parseDeviceDetails ( ipAddr , sn , data ) { return { ipAddr : ipAddr , serialNumber : sn || extract ( / <serialNumber>(.*?)<\/serialNumber> / i , data ) , friendlyName : extract ( / <friendlyName>(.*?)<\/friendlyName> / i , data ) , modelNumber : extract ( / <modelNumber>(.*?)<\/modelNumber> / i , data ) , modelName : extract ( / <modelName>(.*?)<\/modelName> / i , data ) } }
return the serial number from the M-SEARCH/NOTIFY response
return the serial number from the M - SEARCH / NOTIFY response