ソフトウェア
プロジェクトハードウェア
Arduinoのライブラリマネージャからこれらのライブラリを追加します。
Full Source:
#include <SPI.h>
#include <WiFi101.h>
#include "arduino_secrets.h"
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
char ssid[] = SECRET_SSID; // your network SSID (name)
char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP)
int keyIndex = 0; // your network key Index number (needed only for WEP)
#include <ArduinoJson.h>
#include <ArduinoHttpClient.h>
#include <Wire.h>
#include "Adafruit_MCP9808.h"
// Create the MCP9808 temperature sensor object
Adafruit_MCP9808 MCP9808_TempSensor = Adafruit_MCP9808();
// Create a unique ID for the data from each device running this code
const char* jediID = "SAM_IOT";
char serverAddress[] = "192.168.3.104";
int port = 8100;
// Initialize the Ethernet client library
WiFiClient wlan;