}
});
}
public LineInfo fillPin() {
LineInfo line = new LineInfo(42);
line.setDescription(new RestMcuLine());
line.getDescription().setDescription("pin 42 description");
line.getDescription().setDirection(RestMcuLineDirection.INPUT);
line.getDescription().setType(RestMcuLineType.ANALOG);
line.getDescription().setValueMax(1024f);
line.getDescription().setValueMin(0f);
line.setSettings(new RestMcuLineSettings());
line.getSettings().setName("name of pin");
List<RestMcuLineNotify> notifies = new ArrayList<RestMcuLineNotify>();
notifies.add(new RestMcuLineNotify(SUP_OR_EQUAL, 42));
notifies.add(new RestMcuLineNotify(INF_OR_EQUAL, 42));
line.getSettings().setNotifies(notifies);
return line;
}