1.How to set Api timeout and retry times?
2.What’s the difference between parameter mode=1 and mode =2 in write?
3.When the device is online, it invokes the resource list interface. Why nothing is returned?
4.What is the maximum length of the command issued by the platform?
7.How to trigger a cache command?
Use of Api of downstream data |
Answer: The time-out period is 25s by default; this value can be set through Api and the range is 5 ~ 40s.
Example: by default, the time-out period is 25s.
After the first time-out (no reply is received within 5 ~ 7.5s), the platform will have a retry (here, retry means the retry of Coap protocol, namely the internal retry of the platform within the time_out period).
The next time-out period is twice of the first one, so the second retry time is 10s (suppose the first retry time is 5s), and the third time is 20s. Therefore, within the time-out period of 25s, the platform will retry twice at most, and the command will be issued for three times in all.
The time-out period from the application to the device is actually the time-out period from the platform to the device, because the normal communication time from the application to the platform can basically be neglected.
The flow diagram of the above process is as follows:
Answer: The difference consists in that:
Answer: When the platform issues discover command, it will empty the resource list cached; after the device gives a reply, it will continue calling the resources normally.
Answer:Currently, it’s restricted to be 2kb.
cache-command |
Answer: Currently, it’s restricted to be 10.
Answer: At present, it can only be deleted through uuid.
Answer: The trigger condition of cache command is that there is upling message arriving.
For example, for registration, update, and notify, at present, the type of uplink command triggering the cache command can be set.