diff --git a/bindings/python/icsneopy/device/devicetype.cpp b/bindings/python/icsneopy/device/devicetype.cpp index 593d1d3..7044319 100644 --- a/bindings/python/icsneopy/device/devicetype.cpp +++ b/bindings/python/icsneopy/device/devicetype.cpp @@ -9,8 +9,11 @@ namespace icsneo { void init_devicetype(pybind11::module_& m) { pybind11::class_ deviceType(m, "DeviceType"); - // deviceType.def("get_device_type", &DeviceType::getDeviceType); - // deviceType.def("get_generic_product_name", &DeviceType::getGenericProductName); + deviceType.def("get_device_type", &DeviceType::getDeviceType); + deviceType.def( + "get_generic_product_name", [](DeviceType &self) -> std::string { + return self.getGenericProductName(self.getDeviceType()); + }); pybind11::enum_<_icsneo_devicetype_t>(m, "icsneo_devicetype_t") .value("Unknown", icsneo_devicetype_unknown)