Материал из Module developer
Module.getSubDevice()
to get the existing subdevice
Syntax
Module.getSubDevice(name)
| input | sample | description |
| name | "MySubDevice" | type: String the name of the created subdevice |
| output |
| Object | type: Object the SubDevice object |
Example:
Module = B.getModule(ModuleID); NewSubDevice = Module.getSubDevice("MySubDevice"); // get created SubDevice
