Difference between revisions of "ESComplexAsset"

 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Test
 
Test
  
‎<source>
+
‎<shl>
def quick_sort(arr):
+
CTSA.registerComplexAsset(
less = []
+
"0000P09B0E904",
pivot_list = []
+
CTSADeviceClasses.ESCompDimmableMonochromeLEDLamp,
more = []
+
"Garden Lights, Outside Area",
if len(arr) <= 1:
+
"LED Flood Lights",
return arr
+
"TAZHWG",
else:
+
new Lambda.CTSADeviceVoltageDC(12),
pass
+
[
</source>
+
new Lambda.CTSASetupPrimitiveDeviceBinding("led0","ASES_0CA847554EA")
 +
],
 +
[],
 +
[],
 +
new (function() extends Lambda.CTSASetupRunTask(){
 +
 +
public function run(self){
 +
 +
// run task when setup has finished
 +
debug("Finalizing ESCompDimmableMonochromeLEDLamp 0000P09B0E904...");
 +
 
 +
 +
}
 +
 +
})()
 +
);
 +
‎</shl>
 +
 
 +
<shl>
 +
debug("INEG/Test");
 +
 
 +
var ctsa = getComplexAssetById("CSES_0000P09F0E9A4");
 +
 +
 +
if(ctsa != null){
 +
 +
ctsa.requestPowerCycleAdaptive(16,6000);
 +
 +
 +
}
 +
</shl>

Latest revision as of 04:24, 27 December 2022

Test

	CTSA.registerComplexAsset(
		"0000P09B0E904",
		CTSADeviceClasses.ESCompDimmableMonochromeLEDLamp,
		"Garden Lights, Outside Area",
		"LED Flood Lights",
		"TAZHWG",
		new Lambda.CTSADeviceVoltageDC(12),
		[
			new Lambda.CTSASetupPrimitiveDeviceBinding("led0","ASES_0CA847554EA")
		],
		[],
		[],
		new (function() extends Lambda.CTSASetupRunTask(){
		
			public function run(self){
			
				// run task when setup has finished 
				debug("Finalizing ESCompDimmableMonochromeLEDLamp 0000P09B0E904...");

				
			}
		
		})()
	);
‎
	debug("INEG/Test");

	var ctsa = getComplexAssetById("CSES_0000P09F0E9A4");
	
	
	if(ctsa != null){
	
		ctsa.requestPowerCycleAdaptive(16,6000);
	
	
	}