@@ -79,6 +79,7 @@ PyObject* meth_set_fd_bit_rate(PyObject* self, PyObject* args);
7979PyObject * meth_set_bit_rate_ex (PyObject * self , PyObject * args );
8080PyObject * meth_get_timestamp_for_msg (PyObject * self , PyObject * args );
8181PyObject * meth_get_device_status (PyObject * self , PyObject * args );
82+ PyObject * meth_enable_network_com (PyObject * self , PyObject * args );
8283
8384#ifdef _cplusplus
8485}
@@ -1190,6 +1191,30 @@ PyObject* meth_get_device_status(PyObject* self, PyObject* args);
11901191 "\t>>> status.fire2Status.ethernetActivationLineEnabled\n" \
11911192 "\t0\n" \
11921193
1194+ #define _DOC_ENABLE_NETWORK_COM \
1195+ MODULE_NAME".enable_network_com(device, enable, net_id)\n" \
1196+ "\n" \
1197+ "Enable or disable network communication.\n" \
1198+ "\n" \
1199+ "Args:\n" \
1200+ "\tdevice (:class:`"MODULE_NAME"."NEO_DEVICE_OBJECT_NAME"`): :class:`"MODULE_NAME"."NEO_DEVICE_OBJECT_NAME"`\n\n" \
1201+ "\n" \
1202+ "\tenable (:class:`bool`): :class:`bool`\n\n" \
1203+ "\n" \
1204+ "\tnet_id (:class:`int`): :class:`int`: Optional. If left blank, disables/enables all networks.\n\n" \
1205+ "\n" \
1206+ "Raises:\n" \
1207+ "\t:class:`"MODULE_NAME".RuntimeError`\n" \
1208+ "\n" \
1209+ "Returns:\n" \
1210+ "\tNone.\n" \
1211+ "\n" \
1212+ "\t>>> import ics\n" \
1213+ "\t>>> d = ics.open_device()\n" \
1214+ "\t>>> status = ics.enable_network_com(d, True)\n" \
1215+ "\t>>> \n"
1216+
1217+
11931218static PyMethodDef IcsMethods [] = {
11941219 _EZ_ICS_STRUCT_METHOD ("find_devices" , "FindNeoDevices" , (PyCFunction )meth_find_devices , METH_VARARGS | METH_KEYWORDS , _DOC_FIND_DEVICES ),
11951220 _EZ_ICS_STRUCT_METHOD ("open_device" , "OpenNeoDevice" , (PyCFunction )meth_open_device , METH_VARARGS | METH_KEYWORDS , _DOC_OPEN_DEVICES ),
@@ -1258,6 +1283,7 @@ static PyMethodDef IcsMethods[] = {
12581283 _EZ_ICS_STRUCT_METHOD ("get_timestamp_for_msg" , "icsneoGetTimeStampForMsg" , meth_get_timestamp_for_msg , METH_VARARGS , _DOC_GET_TIMESTAMP_FOR_MSG ),
12591284 _EZ_ICS_STRUCT_METHOD ("get_device_status" , "icsneoGetDeviceStatus" , meth_get_device_status , METH_VARARGS , _DOC_GET_DEVICE_STATUS ),
12601285
1286+ _EZ_ICS_STRUCT_METHOD ("enable_network_com" , "icsneoEnableNetworkCom" , meth_enable_network_com , METH_VARARGS , _DOC_ENABLE_NETWORK_COM ),
12611287 {"override_library_name" , (PyCFunction )meth_override_library_name , METH_VARARGS , _DOC_OVERRIDE_LIBRARY_NAME },
12621288 {"get_library_path" , (PyCFunction )meth_get_library_path , METH_NOARGS , "" },
12631289
0 commit comments