Resource synchronization method, device, device and storage medium
A device and resource technology, applied in the field of Internet of Things, can solve problems such as poor reliability of resource synchronization, abnormal resource synchronization of service equipment and network equipment, etc., and achieve the effect of simplifying the resource synchronization process and improving reliability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0169] Example 1: Add a push type for the current temperature value resource in the service device.
[0170] Before adding a push type for the current temperature value resource in the service device, the initial resource information of the current temperature value resource in the service device is as follows:
[0171] {"rt":["oic.r.temperature"],
[0172] "if":["oic.if.s","oic.if.baseline"],
[0173] "temperature": 20
[0174] }
[0175] Step 1: When it is necessary to add a push synchronization method for the current temperature value resource in the service device, first configure the service device through the configuration device. Optionally, the configuration device can configure the service device in the following two ways.
[0176] One way to do it:
[0177]The service device includes a shadow device configuration resource (for example, the shadow device configuration resource can be oic.wk.shadow.conf). The shadow device configuration resource is used to request...
example 2
[0243] Example 2: Add a subscription type for the temperature range resource in the service device.
[0244] Before adding a subscription type for the temperature range resource in the service device, the initial resource information of the temperature range resource in the service device is as follows:
[0245] {"rt":["oic.r.temperatureRange"],
[0246] "if":["oic.if.a","oic.if.baseline"],
[0247] "temperatureRange":[0,30]
[0248] }
[0249] Step 1: When a subscription synchronization method needs to be added for the temperature range resource in the service device, first configure the service device through the configuration device. Optionally, the configuration device can configure the service device in the following two ways.
[0250] One way to do it:
[0251]The service device includes a shadow device configuration resource (for example, the shadow device configuration resource can be oic.wk.shadow.conf). The shadow device configuration resource is used to request...
example 3
[0340] Example 3: Add a push type for the temperature range resource in the network device (the temperature range resource corresponding to the shadow device in the network device).
[0341] Before adding a push type for the current temperature value resource in the service device, the initial resource information of the temperature range resource in the service device is as follows:
[0342]
[0343] Step 1: When it is necessary to add a push synchronization method for the service resources in the network device, configure the service device through the configuration device.
[0344] It should be noted that, for Step 1 in Example 3, reference may be made to Step 1 in Example 1, and details are not repeated here.
[0345] Step 2: The service device sends a configuration success response to the configuration device.
[0346] Step 3: The service device sends a shadow device generation request to the network device.
[0347] Optionally, the shadow device generation request c...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


