comb-AT指令问题(已解决)

[复制链接]
查看1310 | 回复10 | 2024-8-8 16:22:47 | 显示全部楼层 |阅读模式
https://sgi.teld.cn/IOPEN/QueryDeviceServiceUrl?Param={"DeviceKey":"9ac3fefb5bd9423889eed6edb971fbed","DeviceSecret":"5266efeadeb24fcdb7729a40815ebc25","ProductKey":"RAcGTvlZLpg6vnnbSGdcg0X5h8c7oRUy","ProductSecret":"ot5NLu4nrF2YFukrdOFhehoT4V7SBHq7"}

AT+HTTPRAW=2,3,application/json,sgi.teld.cn,8080,/IOPEN/QueryDeviceServiceUrl,?Param={"DeviceKey":"9ac3fefb5bd9423889eed6edb971fbed","DeviceSecret":"5266efeadeb24fcdb7729a40815ebc25","ProductKey":"RAcGTvlZLpg6vnnbSGdcg0X5h8c7oRUy","ProductSecret":"ot5NLu4nrF2YFukrdOFhehoT4V7SBHq7"}
为啥我这样发会报错
以下错误

[16:14:19.528]收←◆f"}
cmd length>19,not support
+ERROR(5)

本帖被以下淘专辑推荐:

回复

使用道具 举报

爱笑 | 2024-8-8 17:20:58 | 显示全部楼层
马上抓个技术给你解决!
用心做好保姆工作
回复 支持 反对

使用道具 举报

Ai-Thinker小泽 | 2024-8-8 20:18:18 | 显示全部楼层
格式错了,要在len那里添加长度的
回复 支持 反对

使用道具 举报

WangChong | 2024-8-9 01:48:58 | 显示全部楼层
哪个模块?
回复

使用道具 举报

aw123 | 2024-8-9 09:11:07 | 显示全部楼层

AI-wb2-07s
回复 支持 反对

使用道具 举报

aw123 | 2024-8-9 09:21:52 | 显示全部楼层
Ai-Thinker小泽 发表于 2024-8-8 20:18
格式错了,要在len那里添加长度的

[09:20:25.152]发→◇AT+HTTPRAW=2,3,application/json,sgi.teld.cn,8080,/IOPEN/QueryDeviceServiceUrl,240,?Param={"DeviceKey":"9ac3fefb5bd9423889eed6edb971fbed","DeviceSecret":"5266efeadeb24fcdb7729a40815ebc25","ProductKey":"RAcGTvlZLpg6vnnbSGdcg0X5h8c7oRUy","ProductSecret":"ot5NLu4nrF2YFukrdOFhehoT4V7SBHq7"}

[09:20:25.592]收←◆L"}
cmd length>19,not support
+ERROR(5)
加了长度也是这样
回复 支持 反对

使用道具 举报

WT_0213 | 2024-8-9 10:29:56 | 显示全部楼层
还得的泽哥
回复 支持 反对

使用道具 举报

123456 | 2024-8-9 14:11:21 | 显示全部楼层
你给的参数不完整 可以查看我发给你的演示

                               
登录/注册后可看大图


AT+HTTPRAW=2,3,"application/json","sgi.teld.cn",443,"/IOPEN/QueryDeviceServiceUrl?Param=",197


{"DeviceKey":"9ac3fefb5bd9423889eed6edb971fbed","DeviceSecret":"5266efeadeb24fcdb7729a40815ebc25","ProductKey":"RAcGTvlZLpg6vnnbSGdcg0X5h8c7oRUy","ProductSecret":"ot5NLu4nrF2YFukrdOFhehoT4V7SBHq7"}

回复 支持 反对

使用道具 举报

aw123 | 2024-8-9 14:47:56 | 显示全部楼层
123456 发表于 2024-8-9 14:11
你给的参数不完整 可以查看我发给你的演示

[14:44:00.369]发→◇AT+HTTPRAW=2,3,"application/json","sgi.teld.cn",443,"/IOPEN/QueryDeviceServiceUrl?Param=",256
{"DeviceKey":"9ac3fefb5bd9423889eed6edb971fbed","DeviceSecret":"5266efeadeb24fcdb7729a40815ebc25","ProductKey":"RAcGTvlZLpg6vnnbSGdcg0X5h8c7oRUy","ProductSecret":"ot5NLu4nrF2YFukrdOFhehoT4V7SBHq7"}□
[14:44:00.372]收←◆AT+HTTPRAW=2,3,"application/json","sgi.teld.cn",443,"/IOPEN/QueryDeviceServiceUrl?Param=",256
{"DeviceKey":"9ac3fefb5bd9423889eed6edb971fbed","DeviceSecret":"5266efeadeb24fcdb7729a40815ebc25","ProductKey":"RAcGTvlZLpg6vnnbSGdcg0X5h8c7oRUy","ProductSecret":"ot5NLu4nrF2YFukrdOFhehoT4V7SBHq7"}
[14:44:01.812]收←◆{"Ret":10000,"Msg":"鍙傛暟涓嶅畬鏁?,"Data":null}
OK
现在是有接收了,但是正常发送接收的是{
    "Ret": 200,
    "Msg": "",
    "Data": {
        "DomainName": "139.219.139.172",
        "Port": "1883",
        "SubTopic": "push/command/monitorparking/[devicekey],push/command/monitorparking/all",
        "ReportTopic": "upload/state/monitorparking/all",
        "GateAddress": null
    }
}
回复 支持 反对

使用道具 举报

iiv | 2024-8-11 21:04:36 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则