API command interface
This commit is contained in:
		
							
								
								
									
										4
									
								
								api.php
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								api.php
									
									
									
									
									
								
							@@ -226,6 +226,7 @@ if ($values != null || $values != "") {
 | 
				
			|||||||
			'gateway' => $device['gateway'],
 | 
								'gateway' => $device['gateway'],
 | 
				
			||||||
		],
 | 
							],
 | 
				
			||||||
		'state' => 'succes',
 | 
							'state' => 'succes',
 | 
				
			||||||
 | 
							'command' => "null",
 | 
				
			||||||
	];
 | 
						];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	$subDevicesTypeList = SubDeviceManager::getSubDeviceSTypeForMater($deviceId);
 | 
						$subDevicesTypeList = SubDeviceManager::getSubDeviceSTypeForMater($deviceId);
 | 
				
			||||||
@@ -261,7 +262,8 @@ if ($values != null || $values != "") {
 | 
				
			|||||||
			'gateway' => $device['gateway'],
 | 
								'gateway' => $device['gateway'],
 | 
				
			||||||
		],
 | 
							],
 | 
				
			||||||
		'state' => 'succes',
 | 
							'state' => 'succes',
 | 
				
			||||||
		'value' => $subDeviceLastReordValue
 | 
							'value' => $subDeviceLastReordValue,
 | 
				
			||||||
 | 
							'command' => "null",
 | 
				
			||||||
	));
 | 
						));
 | 
				
			||||||
	header($_SERVER["SERVER_PROTOCOL"]." 200 OK");
 | 
						header($_SERVER["SERVER_PROTOCOL"]." 200 OK");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user