Change functions check* to get*

ccchange checkDevice and checkModel to getDevice and getModel.
create getCmd and getString