Skip to content

Commit

Permalink
Allows a device to customise its manufacturer and friendlyName
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyMedway committed Jun 3, 2017
1 parent 02665d3 commit 6037648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/devices/Device.coffee
Expand Up @@ -158,8 +158,8 @@ class Device extends DeviceControlProtocol
{ minor: @upnp.version[1] } ] }
{ device: [
{ deviceType: @makeType() }
{ friendlyName: "#{@name} @ #{os.hostname()}".substr(0, 64) }
{ manufacturer: 'UPnP Device for Node.js' }
{ friendlyName: @friendlyName ? "#{@name} @ #{os.hostname()}".substr(0, 64) }
{ manufacturer: @manufacturer ? 'UPnP Device for Node.js' }
{ modelName: @name.substr(0, 32) }
{ UDN: @uuid }
{ serviceList:
Expand Down

0 comments on commit 6037648

Please sign in to comment.