update channel + txpower

This commit is contained in:
Martin Geno 2016-06-29 20:56:05 +02:00
parent d62f3d62ef
commit 10b80c4172
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ function routeNodesPrivEvent(nodeid,attr,attr2){
if(internal.aliases[nodeid][attr] == undefined){ if(internal.aliases[nodeid][attr] == undefined){
internal.aliases[nodeid][attr] = {} internal.aliases[nodeid][attr] = {}
} }
if(attr == "wireless")
value = parseInt(value)
internal.aliases[nodeid][attr][attr2] = value internal.aliases[nodeid][attr][attr2] = value
} }
send('POST',internal.config.api+'/aliases/alias/'+nodeid,internal.aliases[nodeid]) send('POST',internal.config.api+'/aliases/alias/'+nodeid,internal.aliases[nodeid])