[tr064] fix comment in SOAP request (#9671)
* fix comment in SAOP request * fix typo in channel-name Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
parent
0fdf1e34c3
commit
bebc76e452
|
@ -219,7 +219,8 @@ public class Util {
|
||||||
parameters.forEach(parameter -> {
|
parameters.forEach(parameter -> {
|
||||||
// remove comment: split parameter at '#', discard everything after that and remove
|
// remove comment: split parameter at '#', discard everything after that and remove
|
||||||
// trailing spaces
|
// trailing spaces
|
||||||
String normalizedParameter = UIDUtils.encode(parameter.split("#")[0].trim());
|
String rawParameter = parameter.split("#")[0].trim();
|
||||||
|
String normalizedParameter = UIDUtils.encode(rawParameter);
|
||||||
ChannelUID channelUID = new ChannelUID(thing.getUID(),
|
ChannelUID channelUID = new ChannelUID(thing.getUID(),
|
||||||
channelId + "_" + normalizedParameter);
|
channelId + "_" + normalizedParameter);
|
||||||
ChannelBuilder channelBuilder = ChannelBuilder
|
ChannelBuilder channelBuilder = ChannelBuilder
|
||||||
|
@ -228,7 +229,7 @@ public class Util {
|
||||||
.withLabel(channelTypeDescription.getLabel() + " " + parameter);
|
.withLabel(channelTypeDescription.getLabel() + " " + parameter);
|
||||||
thingBuilder.withChannel(channelBuilder.build());
|
thingBuilder.withChannel(channelBuilder.build());
|
||||||
Tr064ChannelConfig channelConfig1 = new Tr064ChannelConfig(channelConfig);
|
Tr064ChannelConfig channelConfig1 = new Tr064ChannelConfig(channelConfig);
|
||||||
channelConfig1.setParameter(parameter);
|
channelConfig1.setParameter(rawParameter);
|
||||||
channels.put(channelUID, channelConfig1);
|
channels.put(channelUID, channelConfig1);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,7 +236,7 @@
|
||||||
serviceId="urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1"/>
|
serviceId="urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1"/>
|
||||||
<getAction name="GetInfo" argument="NewDownstreamAttenuation"/>
|
<getAction name="GetInfo" argument="NewDownstreamAttenuation"/>
|
||||||
</channel>
|
</channel>
|
||||||
<channel name="dslUpstreamAttentuation" label="DSL Upstream Attenuation">
|
<channel name="dslUpstreamAttenuation" label="DSL Upstream Attenuation">
|
||||||
<item type="Number:Dimensionless" unit="dB" statePattern="%.1f dB"/>
|
<item type="Number:Dimensionless" unit="dB" statePattern="%.1f dB"/>
|
||||||
<service deviceType="urn:dslforum-org:device:WANDevice:1"
|
<service deviceType="urn:dslforum-org:device:WANDevice:1"
|
||||||
serviceId="urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1"/>
|
serviceId="urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1"/>
|
||||||
|
|
Loading…
Reference in New Issue