LoginSignup
0
1

More than 5 years have passed since last update.

ThingSpeak > Link > arduino実装例

Last updated at Posted at 2016-01-09

ThingSpeakというサービスを使ってグラフ描画している例をいくつか見つけた。

Tutorial

tutorials @ thingspeak

ページ真ん中の「ThingSpeakClient.pde」のリンクにAruduinoでのThingSpeakアップロードの実装例ファイルがある。

ポート80で接続して以下のようなPOSTをすればよさそう。

    client.print("POST /update HTTP/1.1\n");
    client.print("Host: api.thingspeak.com\n");
    client.print("Connection: close\n");
    client.print("X-THINGSPEAKAPIKEY: "+writeAPIKey+"\n");
    client.print("Content-Type: application/x-www-form-urlencoded\n");
    client.print("Content-Length: ");
    client.print(tsData.length());
    client.print("\n\n");

    client.print(tsData);
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1