Added device type enums
platform.getDevices now takes a single device type argument