thingspeak - Any way to disable "Transfer-Encoding: chunked"?
49 ビュー (過去 30 日間)
古いコメントを表示
Zachariah Belding
2021 年 1 月 11 日
編集済み: Christopher Stapels
2021 年 1 月 12 日
When updating a channel with an execute Talkback(https://www.mathworks.com/help/thingspeak/writedataandexecutetalkbackcommand.html), the thingspeak server uses a chunked style body. With weak and intermittent cellular connections, this can cause difficulties. Is there any way to disable this behavior? I believe updating a channel without Talkback does not use chunked encoding.
0 件のコメント
採用された回答
Christopher Stapels
2021 年 1 月 12 日
編集済み: Christopher Stapels
2021 年 1 月 12 日
Are you sending a very large command to your device? The talkback response should be quite small. We cannot change the encoding on the response that is sent from a TalkBack, but you can use a ThingSpeak channel as a proxy for TalkBack. Write the command to a channel and have the device read the channel at regular intervals or use MQTT to subscribe to the channel. The subscription will provide the channel contents when they are updated.
3 件のコメント
Vinod
2021 年 1 月 12 日
編集済み: Vinod
2021 年 1 月 12 日
Try adding "&headers=false" to your request. That should shorten it up and cause the response to be less likely to be chunked.
Also, are you sending a HTTP/1.1 or HTTP/1.0 request? Try sending a HTTP/1.0 if your device cannot handle a HTTP/1.1 request.
その他の回答 (0 件)
コミュニティ
その他の回答 ThingSpeak コミュニティ
参考
カテゴリ
Help Center および File Exchange で Read Data from Channel についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!