summaryrefslogtreecommitdiff
path: root/smarttv-client/Javascript/Network.js
blob: 1dfcafc7a5d8891548429246323892f58a391e02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
var Network = {
	plugin : null,
	ownMac : "",
	ownGw : ""
};

Network.init = function () {
    this.plugin = document.getElementById("pluginNetwork");
    var nw_type = this.plugin.GetActiveType();
    if ((nw_type == 0) ||  (nw_type == 1)) {
		this.ownMac = this.plugin.GetMAC(nw_type);
		this.ownGw = this.plugin.GetGateway(nw_type);
    }
    alert( "ownMac= " +  this.ownMac);
    alert ("ownGw= " + this.ownGw);
} ;


Network.getMac = function () {
	return this.ownMac;
};

Network.getGateway = function () {
	return this.ownGw;
};