当前位置:网站首页>09. Tencent cloud IOT device side learning -- RRPC and behavior
09. Tencent cloud IOT device side learning -- RRPC and behavior
2022-06-24 10:43:00 【fancyxu】
The main purpose of this series is to record the learning notes of Tencent cloud Internet of things device , And on the device side SDK Make a supplementary explanation .
brief introduction
RRPC And behavior are used for The server initiated Communication process of , With confirmation mechanism , It is applicable to response sensitive scenarios ( With timeout concept ,RRPC 4S / Behavior 5S).
- RRPC The message in is transmitted through , The client designs the application layer protocol interaction
- Messages in behavior need to design data templates , Interact according to the format of the data template
Development considerations
- Timeout time : This mainly refers to the server cloud API Time out returned ,RRPC And the results of behavior will pass through the cloud API return , The device needs to send a reply within the specified time . So if the device side cannot determine the time required for the reply ( Generally, the logic is completed according to the message , Return the message according to the result ), The proposal USES attribute perhaps Reply first + Send events The way .
- Easy to expand : For application scalability ,RRPC Transparent content can be selected JSON character string , And behavior usually defines Input parameters of string type Deposit JSON, To avoid frequent modification of data templates .
边栏推荐
- Younger sister Juan takes you to learn JDBC --- 2-day sprint Day1
- 5. dish management business development
- 2022 International Symposium on intelligent robots and systems (isoirs 2022)
- Niuke-top101-bm28
- What you must know about distributed systems -cap
- Shape change loader loads jsjs special effect code
- Hbuilder makes hero skin lottery games
- 283. move zero
- Leetcode-929: unique email address
- Besides technology, programmers also need to master a skill - self marketing ability
猜你喜欢

283. move zero

Distributed transaction principle and solution

How to customize sharing links in wechat for H5 web pages

Outils de capture de paquets

JMeter interface test tool foundation - sampler (II)

24. 图像拼接大作业

分布式系统你必须了解的点-CAP

JMeter interface test tool foundation - use badboy to record JMeter script

Normal equation

Leetcode-1823: find the winner of the game
随机推荐
Flink checkPoint和SavePoint
How to convert an array to an object, and how to convert an object to an array
tf. errors
分布式系统你必须了解的点-CAP
SSM integration
[ei sharing] the 6th International Conference on ship, ocean and Maritime Engineering in 2022 (naome 2022)
26.删除有序数组的重复项
机械臂速成小指南(二):机械臂的应用
283.移动零
Web项目部署
【JS逆向分享】某个网站社区信息
Web project deployment
Multithreaded applications - improve efficiency
【资源分享】2022年第五届土木,建筑与环境工程国际会议(ICCAEE 2022)
Differences among cookies, session, localstorage and sessionstorage
Role of message queuing
[energy reports] International Conference on energy and environmental engineering in 2022 (cfeee 2022)
Leetcode-1051: height checker
[IEEE] International Conference on naturallanguageprocessing and information retrieval (ecnlpir 2022)
JMeter interface test tool foundation - sampler (II)