Can't send data to Thingspeak from Microbit DFRobot kit
2 ビュー (過去 30 日間)
古いコメントを表示
Hi
I am trying to hook up the DFRobot Environment shield for Microbit (https://www.dfrobot.com/product-2194.html) . I have used it in the past at home. This time I am using it at the school where I am teaching.
I have setup a hotspot using my phone and connected the device (the wifi light goes green) and I can see the device connected on my phone.
But the data doesn't pop up on thingspeak channel. I have attached the code below. The write key is generated by Thingspeak API. The username and password are accurate to what I am using (wifi color goes green on the shield so I know its connected).
When I try ping thingspeak.com I don't get any response. Is that blocked by Thingspeak usually?
Thanks for your support. Sorry I couldn't embed the makecode code so attached a picture. But I don't really think anything is wrong with the code.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1124175/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1124180/image.png)
0 件のコメント
採用された回答
その他の回答 (2 件)
Christopher Stapels
2022 年 9 月 14 日
編集済み: Christopher Stapels
2022 年 9 月 14 日
Are you able to update the channel using the GET command in your browser address bar?
Click on your channel view and use the API keys tab to get the syntax on the right hand side for "Write a channel feed"
Also, we generally reccomend not sharing your API keys, since they are a password to channel updates of a sort. You may wish to redact the above.
pravin vaz
2022 年 9 月 18 日
1 件のコメント
Christopher Stapels
2022 年 9 月 19 日
Thanks for letting us know. Can you put it in the answer section and accept the answer please?
コミュニティ
その他の回答 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!