use of org.openhab.binding.lcn.common.LcnAddrMod in project openhab1-addons by openhab.
the class ModSk method tryParseInput.
/**
* Tries to parse the given input received from LCN-PCHK.
*
* @param input the input
* @return list of {@link ModSk} (might be empty, but not null}
*/
static Collection<Input> tryParseInput(String input) {
LinkedList<Input> ret = new LinkedList<Input>();
Matcher matcher = PckParser.PATTERN_SK_RESPONSE.matcher(input);
if (matcher.matches()) {
ret.add(new ModSk(new LcnAddrMod(Integer.parseInt(matcher.group("segId")), Integer.parseInt(matcher.group("modId"))), Integer.parseInt(matcher.group("id"))));
}
return ret;
}
Aggregations