找回密码
 注册

QQ登录

只需一步,快速开始

搜索

McgsPro HTTP&Json解析驱动下载

[复制链接]
zw961211 发表于 2025-2-8 13:07:11 | 显示全部楼层 |阅读模式
McgsPro_HTTP&Json解析驱动_1.0.0.1_20220510.rar (1.26 MB, 售价: 3 E币)
├─HTTP_Device.chm
├──http_Device.dll
├──HTTP_Device.ui
├─libhttp_device_armv5.so ├   libhttp_Device_armv7.so
2dd69a00b25be27c75e3e48c64d6e45.png
0aaf714a3de08be30f14f54ebbb5486.png
e066d7373fc01a0f59861465cd2a437.png
1、 设备简介
本驱动构件用于http/https的请求和数据解析(内容为Json格式)。
2、 HTTP请求创建
1、 点击“按钮设置”创建http请求
image.png

2、 双击”新增”增加一个请求
image.png

3、创建一个完整的请求,以Get请求为例,如下:
a.  可在初始界面配置固定的URL,操作方式和连接模式。
image.png
b. 点击第一栏编辑配置可变的URL,触发模式(在选用事件触发时建议连接模式选择短连接,避免占用服务器资源。轮询比较频繁时建议采用长连接),http的head设置,如下图
image.png
c.  点击第二栏编辑配置http的请求参数,如下图
image.png
d. 点击第三栏编辑配置http发送时的正文,如下图所示
image.png
e.  点击第四栏编辑配置http接收内容的json数据格式(可将接收内容复制到编辑框,点击生成表格快捷创建)
image.png

补充说明:  
1.加密方式, 接收Json设置里面选择相应的加密形式会以该形式解密。其余地方的均为加密。
2.MD5校验说明:  MD5_32    ----     32位大写MD5值
                           md5_32    ----     32位小写MD5值
                           MD5_16    ----     16位大写MD5值
                           Md5_16    ----     16位小写MD5值
4、 设备命令
本设备构件提供设备命令,设备命令的格式如下:
设备命令

命令介绍
EXECUTE

格式1
EXECUTE (操作名称, 返回值)
用途
执行已组态好的指定HTTP操作
参数
操作名称1
在内部属性页配置时设定的操作名称。参数可为字符串变量和字符串常量。
返回值2
HTTP操作结果,返回值参见HTTP返回值。参数可数值型变量。
例1
! SetDevice (设备0, 6, " EXECUTE (GetWeather,ercode)")
执行内部属性页配置时设定的GetWeather操作,请求结果返回给ercode。

GETREQUEST

格式1
GETREQUEST (操作名称, JSON字符串)
用途
获取指定HTTP操作返回的数据。
参数
操作名称1
在内部属性页配置时设定的操作名称。参数可为字符串变量和字符串常量。
JSON字符串2
执行指定的HTTP操作后返回的数据。
例1
!SetDevice(设备0, 6, " GETREQUEST (GetWeather,Request字符串)")
执行内部属性页配置时设定的GetWeather操作,返回数据给Request字符串。

5、 通讯状态
<1>通讯状态:
        注意为“通讯状态”通道连接变量。
<2>常见故障分析:
故障现象

分析
处理建议
通讯状态为 -1
驱动文件缺失
1、重新安装驱动
通讯状态为4

设备命令使用错误
1、检查设备命令格式

6、 附录
0 ---- Curle OK
1 ---- Curle Unsupported Portocol
2 ---- Curle Failed Init
3 ---- Curle URL Malformat
4 ---- Curle Not Built In
5 ---- Curle Couldnt Resolve Proxy
6 ---- Curle Couldnt Resolve Host
7 ---- Curle Couldnt Connect
8 ---- Curle Weird Server Reply
9 ---- Curle Remote Access Denied
10 ---- Curle FTP Accept Failed
11 ---- Curle FTP Weird Pass Reply
12 ---- Curle FTP Accept Timeout
13 ---- Curle FTP Weird Pasv Reply
14 ---- Curle FTP weird 277 Format
15 ---- Curle FTP Cant Get Host
16 ---- Curle HTTP2
17 ---- Curle FTP Couldnt Set Type
18 ---- Curle Partial File
19 ---- Curle FTP Couldnt Retr File
20 ---- Curle Obsolete20
21 ---- Curle Quote Error
22 ---- Curle HTTP Returned Error
23 ---- Curle Write Error
24 ---- Curle Obsolete24
25 ---- Curle Upload Failed
26 ---- Curle Read Error
27 ---- Curle Out Of Memory
28 ---- Curle Operation Timedout
29 ---- Curle Obsolete29
30 ---- Curle FTP Port Failed
31 ---- Curle FTP Couldnt Use Rest
32 ---- Curle Obsolete32
33 ---- Curle Range Error
34 ---- Curle HTTP Post Error
35 ---- Curle SSL connect Error
36 ---- Curle Bad Download Resume
37 ---- Curle File Couldnt Read File
38 ---- Curle Ldap connot Bind
39 ---- Curle Ldap Search Failed
40 ---- Curle Obsolete40
41 ---- Curle Function Not Found
42 ---- Curle Aborted By Callback
43 ---- Curle Bad Function Argument
44 ---- Curle Obsolete44
45 ---- Curle Interface Failed
46 ---- Curle Obsolete46
47 ---- Curle Too Many Redirects
48 ---- Curle Unknown Option
49 ---- Curle Setopt Option Syntax
50 ---- Curle Obsolete50
51 ---- Curle Obsolete51
52 ---- Curle Got Nothing
53 ---- Curle SSL Engine Notfound
54 ---- Curle SSL Engine Setfailed
55 ---- Curle Send Error
56 ---- Curle Recv Error
57 ---- Curle Obsolete57
58 ---- Curle SSL Certproblem
59 ---- Curle SSL Cipher
60 ---- Curle Peer Failed Verification
61 ---- Curle Bad Content Encoding
62 ---- Curle Obsolete62
63 ---- Curle Filesize Exceeded
64 ---- Curle Use SSL Failed
65 ---- Curle Send Fail Rewind
66 ---- Curle SSL Engine InitFailed
67 ---- Curle Login Denied
68 ---- Curle Tftp Notfound
69 ---- Curle tfpt Perm
70 ---- Curle Remote Disk Full
71 ---- Curle Tftp Illegal
72 ---- Curle Tftp Unknowid
73 ---- Curle Remote File Exists
74 ---- Curle Tftp Nosuchuser
75 ---- Curle Conv Failed
76 ---- Curle Obsolete76
77 ---- Curle SSL Cacert Badfile
78 ---- Curle Remote File Not Found
79 ---- Curle SSH
80 ---- Curle SSL Shutdown Failde
81 ---- Curle Again
82 ---- Curle SSL Crl Badfile
83 ---- Curle SSL Issuer Error
84 ---- Curle Ftp pRet Failed
85 ---- Curle Rtsp Cesq Error
86 ---- Curle Rtsp Session Error
87 ---- Curle Ftp Bad File List
88 ---- Curle Chunk Failed
89 ---- Curle No Connection Available
90 ---- Curle SSL Pinnedpubkeynotmatch
91 ---- Curle SSL Invalidcertstatus
92 ---- Curle HTTP2 Stream
93 ---- Curle Recursive API Call
94 ---- Curle Auth Error
95 ---- Curle HTTP3
96 ---- Curle Quic Connect Error
97 ---- Curle Proxy
98 ---- Curle SSL Clientcert
99 ---- Curle Last


//   [Informational 1xx]
100 ---- Continue
101 ---- Switching Protocols

//    [Successful 2xx]
200 ---- OK
201 ---- Created
202 ---- Accepted
203 ---- Non-Authoritative Information
204 ---- No Content
205 ---- Reset Content
206 ---- Partial Content

//    [Redirection 3xx]
300 ---- Multiple Choices
301 ---- Moved Permanently
302 ---- Found
303 ---- See Other
304 ---- Not Modified
305 ---- Use Proxy
306 ---- (Unused)
307 ---- Temporary Redirect

//    [Client Error 4xx]
400 ---- Bad Request
401 ---- Unauthorized
402 ---- Payment Required
403 ---- Forbidden
404 ---- Not Found
405 ---- Method Not Allowed
406 ---- Not Acceptable
407 ---- Proxy Authentication Required
408 ---- Request Time-out
409 ---- Conflict
410 ---- Gone
411 ---- Length Required
412 ---- Precondition Failed
413 ---- Request Entity Too Large
414 ---- Request-URI Too Large
415 ---- Unsupported Media Type
416 ---- Requested range not satisfiable
417 ---- Expectation Failed
422 ---- Unprocessable Entity
426 ---- Upgrade Required
428 ---- Precondition Required
429 ---- Too Many Requests
431 ---- Request Header Fields Too Large

//    [Server Error 5xx]
500 ---- Internal Server Error
501 ---- Not Implemented
502 ---- Bad Gateway
503 ---- Service Unavailable
504 ---- Gateway Timeout
505 ---- HTTP Version not supported
511 ---- Network Authentication Required
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|ELEOK |网站地图

GMT+8, 2025-2-21 03:23

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表