Triggering ThingSpeak Alert from ThingHTTP

I've created a ThingHTTP request with the following values:
When I invoke this using the test URL provided to the right side of the page, the response is "Unauthorized". I copy/pasted the apiKey from my key list.
What am I doing wrong?

3 件のコメント

Christopher Stapels
Christopher Stapels 2020 年 12 月 21 日
Is your intended workjflow for a device to trigger this request? If not, I would really reccomend a MATLAB analysis script with a time control. There is a template available if you create a new MATLAB analysis, and also a complete example.
Have a look at the doc page for the send alert and then for thingHTTP, to see how to put headers in theingHTTP.
David Strip
David Strip 2020 年 12 月 22 日
I want to trigger this from a React.
For now, I've punted and the react invokes an IFTTT action via http.
Christopher Stapels
Christopher Stapels 2020 年 12 月 22 日
You can definitely trigger a MATLAB analysis from a react. Use the template if you need help writing the code for the alert in MATLAB analysis. The reason to use thingHTTP is if you wanted to trigger it from a device.

サインインしてコメントする。

回答 (0 件)

コミュニティ

その他の回答  ThingSpeak コミュニティ

カテゴリ

ヘルプ センター および File ExchangeAct on Data についてさらに検索

製品

質問済み:

2020 年 12 月 19 日

コメント済み:

2020 年 12 月 22 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by