国产免费AV|泡泡玛特欧洲总部将设在伦敦|中文天堂网www新版资源在线|一本久道综合在线中文|国精产品一二三产区的使用方法|香蕉鱼在线观看|www.27eee

 找回密碼
 注冊
搜索

McgsPro HTTP&Json解析驅動下載

[復制鏈接]
樓主
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
McgsPro HTTP&Json解析驅動下載 2dd69a00b25be27c75e3e48c64d6e45.png
McgsPro HTTP&Json解析驅動下載 0aaf714a3de08be30f14f54ebbb5486.png
McgsPro HTTP&Json解析驅動下載 e066d7373fc01a0f59861465cd2a437.png
1、 設備簡介
本驅動構件用于http/https的請求和數據解析(內容為Json格式)。
2、 HTTP請求創建
1、 點擊“按鈕設置”創建http請求
McgsPro HTTP&Json解析驅動下載 image.png

2、 雙擊”新增”增加一個請求
McgsPro HTTP&Json解析驅動下載 image.png

3、創建一個完整的請求,以Get請求為例,如下:
a.  可在初始界面配置固定的URL,操作方式和連接模式。
McgsPro HTTP&Json解析驅動下載 image.png
b. 點擊第一欄編輯配置可變的URL,觸發模式(在選用事件觸發時建議連接模式選擇短連接,避免占用服務器資源。輪詢比較頻繁時建議采用長連接),http的head設置,如下圖
McgsPro HTTP&Json解析驅動下載 image.png
c.  點擊第二欄編輯配置http的請求參數,如下圖
McgsPro HTTP&Json解析驅動下載 image.png
d. 點擊第三欄編輯配置http發送時的正文,如下圖所示
McgsPro HTTP&Json解析驅動下載 image.png
e.  點擊第四欄編輯配置http接收內容的json數據格式(可將接收內容復制到編輯框,點擊生成表格快捷創建)
McgsPro 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
沙發
lijianx 發表于 2025-3-12 14:53:14 | 只看該作者
樓主您好,我正用您的驅動包測試MCGS的HTTP請求和json解析,我發現若解析中出現Array就無法執行但不報錯(無法解析到關聯變量),若無則正確運行,我不清楚是不是設置問題,可能需要您的幫助
板凳
zhujt 發表于 2025-4-11 11:55:17 | 只看該作者
謝謝,正需要呢.
地板
lllllllllllll 發表于 2025-5-23 17:42:27 | 只看該作者
您好,這個驅動能支持最外層是json數組嗎
5#
lllllllllllll 發表于 2025-5-26 09:30:46 | 只看該作者
lijianx 發表于 2025-3-12 14:53
樓主您好,我正用您的驅動包測試MCGS的HTTP請求和json解析,我發現若解析中出現Array就無法執行但不報錯( ...

您好,請問您解決這個問題了嗎

6#
vvip 發表于 2025-11-20 23:17:49 | 只看該作者
下載研究一下
7#
libingtian 發表于 2025-11-28 08:50:03 | 只看該作者
謝謝,正需要呢.
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規則

手機版|小黑屋|ELEOK |網站地圖

GMT+8, 2026-5-21 13:21

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回復 返回頂部 返回列表