title: Samsung Smart TV -Get Device ID in Emulator
body: <p>Im totaly new to the Samsung Smart TV App Development.Im trying to get Device Serial (MAC Address or any unique String) when the app is running.Here is what i have done so far.</p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
      &lt;title&gt;Test2&lt;/title&gt;
  
      &lt;!-- TODO : Common API --&gt;
      &lt;script type="text/javascript" language="javascript" src="$MANAGER_WIDGET/Common/API/Widget.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" language="javascript" src="$MANAGER_WIDGET/Common/API/TVKeyValue.js"&gt;&lt;/script&gt;
  
  
      &lt;!-- TODO : Javascript code --&gt;
      &lt;script language="javascript" type="text/javascript" src="app/javascript/Main.js"&gt;&lt;/script&gt;
  
      &lt;!-- TODO : Style sheets code --&gt;
      &lt;link rel="stylesheet" href="app/stylesheets/Main.css" type="text/css"&gt;
  
      &lt;!-- TODO: Plugins --&gt;
      &lt;script type="text/javascript"&gt;
      &lt;script&gt;
      function myFunction() {
         var networkPlugin = document.getElementById('pluginNetwork');
         var nnaviPlugin = document.getElementById('pluginObjectNNavi');
         var deviceId = nnaviPlugin.GetDUID(networkPlugin.GetHWaddr());
  
         document.getElementById('ss').innerHTML = nnaviPlugin;
      }
      &lt;/script&gt;
  
      &lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body onload="lycaload();" bgcolor="#FFF" style="background:#FFF"&gt;
  
  fgujhdfughufdghudfhgufghufhgfc
  &lt;object id='pluginNetwork' border=0 classid='clsid:SAMSUNG-INFOLINK-  NETWORK'&gt;&lt;/object&gt;
  &lt;object id='pluginObjectNNavi' border=0 classid='clsid:SAMSUNG-INFOLINK-NNAVI'&gt;  &lt;/object&gt;
      &lt;!-- Dummy anchor as focus for key events --&gt;
        &lt;a href="javascript:void(0);" id="anchor" onkeydown="Main.keyDown();"&gt;   &lt;/a&gt;
  
      &lt;div id="ss"&gt;
      &lt;/div&gt;
     &lt;/body&gt;
   &lt;/html&gt;
  </code></pre>
  
  <p>This application is testing on 2014 Samsung Smart TV Emulator 5.1 and receiving nothing when app is running.  Please don't mark this as duplicate. I have followed previous Stackoverflow post and didnt get any luck..</p>