This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC3235S:HTTP 对帖子的响应、待处理后仅使用 http 标头元数据。

Guru**** 2487425 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/1216170/cc3235s-http-response-to-a-post-using-just-http-headers-metadata-after-pending

器件型号:CC3235S

大家好!

我事先知道,一个 HTTP 响应的帖子不能包含一个包含数据的主体,从手册(没有办法返回有效负载数据作为响应的一部分,只有 HTTP 标题作为元数据的一部分)。

我的问题:

在响应 http 帖子时,我可以发送暂挂响应,稍后只发送元数据。,使用 sl_NetAppSend ?

如果可能,你能给一些模板代码(只是 响应的一部分使用  sl_NetAppSend ),并不影响 http 上的内容类型。

提前感谢,

f 直径

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    是的、这是处理 POST 请求的方式。

    您可以参考 OOB 示例和 MQTT_Client 示例(二者均可在 SDK 中找到- MQTT 示例包括一个  简化 HTTP 服务器接口的模块)。