McgsPro_HTTP&Json解析驅動_1.0.0.1_20220510.rar
(1.26 MB, 售價: 3 E幣)
2025-2-8 13:06 上傳
點擊文件名下載附件
售價: 3 E幣 [記錄]
├─HTTP_Device.chm
├──http_Device.dll
├──HTTP_Device.ui
├─libhttp_device_armv5.so ├ libhttp_Device_armv7.so
2dd69a00b25be27c75e3e48c64d6e45.png (19.54 KB)
下載附件
2025-2-8 13:05 上傳
0aaf714a3de08be30f14f54ebbb5486.png (1.05 KB)
下載附件
2025-2-8 13:05 上傳
e066d7373fc01a0f59861465cd2a437.png (42.58 KB)
下載附件
2025-2-8 13:05 上傳
1、 設備簡介本驅動構件用于http/https的請求和數據解析(內容為Json格式)。 2、 HTTP請求創建1、 點擊“按鈕設置”創建http請求
image.png (27.67 KB)
下載附件
2025-2-12 01:10 上傳
2、 雙擊”新增”增加一個請求
image.png (17.35 KB)
下載附件
2025-2-12 01:10 上傳
3、創建一個完整的請求,以Get請求為例,如下: a. 可在初始界面配置固定的URL,操作方式和連接模式。
image.png (31.96 KB)
下載附件
2025-2-12 01:10 上傳
b. 點擊第一欄編輯配置可變的URL,觸發模式(在選用事件觸發時建議連接模式選擇短連接,避免占用服務器資源。輪詢比較頻繁時建議采用長連接),http的head設置,如下圖
image.png (27.15 KB)
下載附件
2025-2-12 01:11 上傳
c. 點擊第二欄編輯配置http的請求參數,如下圖
image.png (26.56 KB)
下載附件
2025-2-12 01:12 上傳
d. 點擊第三欄編輯配置http發送時的正文,如下圖所示
image.png (23.87 KB)
下載附件
2025-2-12 01:11 上傳
e. 點擊第四欄編輯配置http接收內容的json數據格式(可將接收內容復制到編輯框,點擊生成表格快捷創建)
image.png (76.66 KB)
下載附件
2025-2-12 01:12 上傳
補充說明: 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)指出,本站將立即改正。
|