Материал из Module developer
IR.ModuleSetupFinish
{{API Function/ru |description=Completing module installation is required when developing a scanner. This method is used to develop a scanner to set a module for installation with all required data. |constructor= IR.ModuleSetupFinish(StoreID, ModuleData, [Callback]) |input=
| StoreID | 82 | type: Number Module ID in the store |
| ModuleData | type: Object Data for module required for its work. Format to record data for module is given below |
| Callback | function(in_error){...} | type: Function Function that is performed after a module is installed.
|
|output= - |JSsample=
//An example of installing HDL Dimmer from the scanner var l_nStoreID = 82; var l_oModuleData = { Module: { //Data required for module work Type: "Dimmer", SubnetID: 3, DeviceID: 6 Name: "HDL Dimmer" } Drivers: { //Data for driver "HDL-BUS Pro Network (UDP)": { Host: "255.255.255.255", //setting a host for the driver Port: "6000" //setting a port for the driver }, } }
