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

ELEOK

標(biāo)題: McgsPro HTTP&Json解析驅(qū)動(dòng)下載 [打印本頁(yè)]

作者: zw961211    時(shí)間: 2025-2-8 13:07
標(biāo)題: McgsPro HTTP&Json解析驅(qū)動(dòng)下載
McgsPro_HTTP&Json解析驅(qū)動(dòng)_1.0.0.1_20220510.rar (1.26 MB, 售價(jià): 3 E幣)
├─HTTP_Device.chm
├──http_Device.dll
├──HTTP_Device.ui
├─libhttp_device_armv5.so ├   libhttp_Device_armv7.so



1、 設(shè)備簡(jiǎn)介
本驅(qū)動(dòng)構(gòu)件用于http/https的請(qǐng)求和數(shù)據(jù)解析(內(nèi)容為Json格式)。
2、 HTTP請(qǐng)求創(chuàng)建
1、 點(diǎn)擊“按鈕設(shè)置”創(chuàng)建http請(qǐng)求

2、 雙擊”新增”增加一個(gè)請(qǐng)求

3、創(chuàng)建一個(gè)完整的請(qǐng)求,以Get請(qǐng)求為例,如下:
a.  可在初始界面配置固定的URL,操作方式和連接模式。
b. 點(diǎn)擊第一欄編輯配置可變的URL,觸發(fā)模式(在選用事件觸發(fā)時(shí)建議連接模式選擇短連接,避免占用服務(wù)器資源。輪詢比較頻繁時(shí)建議采用長(zhǎng)連接),http的head設(shè)置,如下圖
c.  點(diǎn)擊第二欄編輯配置http的請(qǐng)求參數(shù),如下圖
d. 點(diǎn)擊第三欄編輯配置http發(fā)送時(shí)的正文,如下圖所示
e.  點(diǎn)擊第四欄編輯配置http接收內(nèi)容的json數(shù)據(jù)格式(可將接收內(nèi)容復(fù)制到編輯框,點(diǎn)擊生成表格快捷創(chuàng)建)

補(bǔ)充說(shuō)明:  
1.加密方式, 接收J(rèn)son設(shè)置里面選擇相應(yīng)的加密形式會(huì)以該形式解密。其余地方的均為加密。
2.MD5校驗(yàn)說(shuō)明:  MD5_32    ----     32位大寫(xiě)MD5值
                           md5_32    ----     32位小寫(xiě)MD5值
                           MD5_16    ----     16位大寫(xiě)MD5值
                           Md5_16    ----     16位小寫(xiě)MD5值
4、 設(shè)備命令
本設(shè)備構(gòu)件提供設(shè)備命令,設(shè)備命令的格式如下:
設(shè)備命令

命令介紹
EXECUTE

格式1
EXECUTE (操作名稱(chēng), 返回值)
用途
執(zhí)行已組態(tài)好的指定HTTP操作
參數(shù)
操作名稱(chēng)1
在內(nèi)部屬性頁(yè)配置時(shí)設(shè)定的操作名稱(chēng)。參數(shù)可為字符串變量和字符串常量。
返回值2
HTTP操作結(jié)果,返回值參見(jiàn)HTTP返回值。參數(shù)可數(shù)值型變量。
例1
! SetDevice (設(shè)備0, 6, " EXECUTE (GetWeather,ercode)")
執(zhí)行內(nèi)部屬性頁(yè)配置時(shí)設(shè)定的GetWeather操作,請(qǐng)求結(jié)果返回給ercode。

GETREQUEST

格式1
GETREQUEST (操作名稱(chēng), JSON字符串)
用途
獲取指定HTTP操作返回的數(shù)據(jù)。
參數(shù)
操作名稱(chēng)1
在內(nèi)部屬性頁(yè)配置時(shí)設(shè)定的操作名稱(chēng)。參數(shù)可為字符串變量和字符串常量。
JSON字符串2
執(zhí)行指定的HTTP操作后返回的數(shù)據(jù)。
例1
!SetDevice(設(shè)備0, 6, " GETREQUEST (GetWeather,Request字符串)")
執(zhí)行內(nèi)部屬性頁(yè)配置時(shí)設(shè)定的GetWeather操作,返回?cái)?shù)據(jù)給Request字符串。

5、 通訊狀態(tài)
<1>通訊狀態(tài):
        注意為“通訊狀態(tài)”通道連接變量。
<2>常見(jiàn)故障分析:
故障現(xiàn)象

分析
處理建議
通訊狀態(tài)為 -1
驅(qū)動(dòng)文件缺失
1、重新安裝驅(qū)動(dòng)
通訊狀態(tài)為4

設(shè)備命令使用錯(cuò)誤
1、檢查設(shè)備命令格式

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    時(shí)間: 2025-3-12 14:53
樓主您好,我正用您的驅(qū)動(dòng)包測(cè)試MCGS的HTTP請(qǐng)求和json解析,我發(fā)現(xiàn)若解析中出現(xiàn)Array就無(wú)法執(zhí)行但不報(bào)錯(cuò)(無(wú)法解析到關(guān)聯(lián)變量),若無(wú)則正確運(yùn)行,我不清楚是不是設(shè)置問(wèn)題,可能需要您的幫助
作者: zhujt    時(shí)間: 2025-4-11 11:55
謝謝,正需要呢.
作者: lllllllllllll    時(shí)間: 2025-5-23 17:42
您好,這個(gè)驅(qū)動(dòng)能支持最外層是json數(shù)組嗎

作者: lllllllllllll    時(shí)間: 2025-5-26 09:30
lijianx 發(fā)表于 2025-3-12 14:53
樓主您好,我正用您的驅(qū)動(dòng)包測(cè)試MCGS的HTTP請(qǐng)求和json解析,我發(fā)現(xiàn)若解析中出現(xiàn)Array就無(wú)法執(zhí)行但不報(bào)錯(cuò)( ...

您好,請(qǐng)問(wèn)您解決這個(gè)問(wèn)題了嗎


作者: vvip    時(shí)間: 2025-11-20 23:17
下載研究一下
作者: libingtian    時(shí)間: 2025-11-28 08:50
謝謝,正需要呢.




歡迎光臨 ELEOK (http://m.afoofa.cn/) Powered by Discuz! X5.0