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
1、 设备简介本驱动构件用于http/https的请求和数据解析(内容为Json格式)。 2、 HTTP请求创建1、 点击“按钮设置”创建http请求
2、 双击”新增”增加一个请求
3、创建一个完整的请求,以Get请求为例,如下: a. 可在初始界面配置固定的URL,操作方式和连接模式。 b. 点击第一栏编辑配置可变的URL,触发模式(在选用事件触发时建议连接模式选择短连接,避免占用服务器资源。轮询比较频繁时建议采用长连接),http的head设置,如下图 c. 点击第二栏编辑配置http的请求参数,如下图 d. 点击第三栏编辑配置http发送时的正文,如下图所示 e. 点击第四栏编辑配置http接收内容的json数据格式(可将接收内容复制到编辑框,点击生成表格快捷创建)
补充说明: 1.加密方式, 接收Json设置里面选择相应的加密形式会以该形式解密。其余地方的均为加密。 2.MD5校验说明: MD5_32 ---- 32位大写MD5值 md5_32 ---- 32位小写MD5值 MD5_16 ---- 16位大写MD5值 Md5_16 ---- 16位小写MD5值 4、 设备命令本设备构件提供设备命令,设备命令的格式如下: 设备命令
| | EXECUTE
| | | | | | | 在内部属性页配置时设定的操作名称。参数可为字符串变量和字符串常量。 | | HTTP操作结果,返回值参见HTTP返回值。参数可数值型变量。 | | ! SetDevice (设备0, 6, " EXECUTE (GetWeather,ercode)") | 执行内部属性页配置时设定的GetWeather操作,请求结果返回给ercode。 |
| GETREQUEST
| | GETREQUEST (操作名称, JSON字符串) | | | | | 在内部属性页配置时设定的操作名称。参数可为字符串变量和字符串常量。 | | | | !SetDevice(设备0, 6, " GETREQUEST (GetWeather,Request字符串)") | 执行内部属性页配置时设定的GetWeather操作,返回数据给Request字符串。 |
5、 通讯状态<1>通讯状态: 注意为“通讯状态”通道连接变量。 <2>常见故障分析:
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
【必读】版权免责声明
1、本主题所有言论和内容纯属会员个人意见,与本论坛立场无关。2、本站对所发内容真实性、客观性、可用性不做任何保证也不负任何责任,网友之间仅出于学习目的进行交流。3、对提供的数字内容不拥有任何权利,其版权归原著者拥有。请勿将该数字内容进行商业交易、转载等行为,该内容只为学习所提供,使用后发生的一切问题与本站无关。 4、本网站不保证本站提供的下载资源的准确性、安全性和完整性;同时本网站也不承担用户因使用这些下载资源对自己和他人造成任何形式的损失或伤害。 5、本网站所有软件和资料均为网友推荐收集整理而来,仅供学习用途使用,请务必下载后两小时内删除,禁止商用。6、如有侵犯你版权的,请及时联系我们(电子邮箱1370723259@qq.com)指出,本站将立即改正。
|