Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Fix issue reported in #4239 (#4281)
Browse files Browse the repository at this point in the history
IEC-62056-21 Binding: Support for ISKRA MT174 OBIS Codes 
OBIS code of the format A-B:C.D.E*F conflict with item configuration in which conflicts with separation string in item configuration
  • Loading branch information
kreutpet authored and teichsta committed May 2, 2016
1 parent e852977 commit 1e8dc07
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
* Here are some examples for valid binding configuration strings:
*
* <ul>
* <li><code>{ iec6205621meter="meter1:1.8.1" }</code> - shows the tarif 1 counter value of 'meter1'</li>
* <li><code>{ iec6205621meter="meter1:1.8.2" }</code> - shows the tarif 1 counter value of 'meter1'</li>
* <li><code>{ iec6205621meter="meter2:16.7" }</code> - shows the current power usage value of 'meter2'</li>
* <li><code>{ iec6205621meter="meter1;1.8.1" }</code> - shows the tarif 1 counter value of 'meter1'</li>
* <li><code>{ iec6205621meter="meter1;1.8.2" }</code> - shows the tarif 1 counter value of 'meter1'</li>
* <li><code>{ iec6205621meter="meter2;16.7" }</code> - shows the current power usage value of 'meter2'</li>
* </ul>
*
* @author Peter Kreutzer
Expand Down Expand Up @@ -72,7 +72,7 @@ public void processBindingConfiguration(String context, Item item, String bindin
throws BindingConfigParseException {
super.processBindingConfiguration(context, item, bindingConfig);
Iec6205621MeterBindingConfig config = new Iec6205621MeterBindingConfig();
StringTokenizer tokenizer = new StringTokenizer(bindingConfig.trim(), ":");
StringTokenizer tokenizer = new StringTokenizer(bindingConfig.trim(), ";");
String[] tokens = new String[tokenizer.countTokens()];
for (int i = 0; i < tokens.length; i++) {
tokens[i] = tokenizer.nextToken();
Expand Down

0 comments on commit 1e8dc07

Please sign in to comment.