| CPC H04L 67/125 (2013.01) | 15 Claims |

|
1. A method for controlling an IoT device, performed by a server, the method comprising:
receiving detection data reported by an IoT device;
verifying device control information based on the detection data, wherein the device control information includes separately stored first data and second data, the first data is configured to indicate a pending action set for an IoT device to be controlled, and the second data is configured to indicate an operating parameter condition that needs to be met to execute the pending action; and
sending, in response to the second data in the device control information being successfully verified, a control instruction to the IoT device to be controlled based on the first data, wherein the control instruction is configured for execution of the pending action;
wherein the method further comprises:
receiving the device control information before receiving the detection data reported by the IoT device;
splitting the device control information into multiple target data, wherein the target data belongs to the first data, or belongs to first condition data in the second data, or belongs to second condition data in the second data;
for each of the multiple target data:
determining a first storage identifier of the target data, wherein the first storage identifier indicates that the target data belongs to the first data, the first condition data, or the second condition data;
generating, in response to existence of at least one subdata in the target data, a second storage identifier for each of the at least one subdata, wherein the subdata includes the pending action or the operating parameter condition, and the second storage identifier is configured to distinguish different subdata; and
storing each of the at least one subdata separately, wherein the subdata carries the first storage identifier, the second storage identifier, and a parameter value corresponding to the subdata.
|