HUSKYLENS

 | IoT
2020. 11. 2. 00:49

'IoT' 카테고리의 다른 글

nodemcu_dht22_thingspeak  (0) 2020.02.13
SHT85 Datasheet  (1) 2019.04.12
제조 분야 AI-ML 적용 사례 - BISTel 김현진  (0) 2019.03.07
LattePanda Alpha  (0) 2018.04.24
Key note 1 SKT 5G 추진 전략 박진효 SKT NW  (0) 2017.03.23
Posted by 조용문

nodemcu_dht22_thingspeak

 | IoT
2020. 2. 13. 19:42

#include
#include

// replace with your channel's thingspeak API key,
String apiKey = "...........";
const char* ssid = "...........";
const char* password = ".........";

const char* server = "api.thingspeak.com";
#define DHTPIN 2 // what pin we're connected to

DHT dht(DHTPIN, DHT22,15);
WiFiClient client;

void setup() {
Serial.begin(115200);
delay(10);
dht.begin();

WiFi.begin(ssid, password);

Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);

WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");

}

void loop() {

float h = dht.readHumidity();
float t = dht.readTemperature();
if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}

if (client.connect(server,80)) { // "184.106.153.149" or api.thingspeak.com
String postStr = apiKey;
postStr +="&field1=";
postStr += String(t);
postStr +="&field2=";
postStr += String(h);
postStr += "\r\n\r\n";

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

Serial.print("Temperature: ");
Serial.print(t);
Serial.print(" degrees Celcius Humidity: ");
Serial.print(h);
Serial.println("% send to Thingspeak");
}
client.stop();

Serial.println("Waiting...");
// thingspeak needs minimum 15 sec delay between updates
delay(20000);
}

'IoT' 카테고리의 다른 글

HUSKYLENS  (0) 2020.11.02
SHT85 Datasheet  (1) 2019.04.12
제조 분야 AI-ML 적용 사례 - BISTel 김현진  (0) 2019.03.07
LattePanda Alpha  (0) 2018.04.24
Key note 1 SKT 5G 추진 전략 박진효 SKT NW  (0) 2017.03.23
Posted by 조용문

SHT85 Datasheet

 | IoT
2019. 4. 12. 14:11

'IoT' 카테고리의 다른 글

HUSKYLENS  (0) 2020.11.02
nodemcu_dht22_thingspeak  (0) 2020.02.13
제조 분야 AI-ML 적용 사례 - BISTel 김현진  (0) 2019.03.07
LattePanda Alpha  (0) 2018.04.24
Key note 1 SKT 5G 추진 전략 박진효 SKT NW  (0) 2017.03.23
Posted by 조용문

'IoT' 카테고리의 다른 글

nodemcu_dht22_thingspeak  (0) 2020.02.13
SHT85 Datasheet  (1) 2019.04.12
LattePanda Alpha  (0) 2018.04.24
Key note 1 SKT 5G 추진 전략 박진효 SKT NW  (0) 2017.03.23
SKT IoT 생태계 활성화 정책  (0) 2017.01.26
Posted by 조용문

LattePanda Alpha

 | IoT
2018. 4. 24. 05:08

 
 

Posted by 조용문

'IoT' 카테고리의 다른 글

SHT85 Datasheet  (1) 2019.04.12
제조 분야 AI-ML 적용 사례 - BISTel 김현진  (0) 2019.03.07
LattePanda Alpha  (0) 2018.04.24
SKT IoT 생태계 활성화 정책  (0) 2017.01.26
SKT 5G & IoT NWLoRa등 추진 및 개발  (0) 2017.01.26
Posted by 조용문

SKT IoT 생태계 활성화 정책

 | IoT
2017. 1. 26. 23:32

'IoT' 카테고리의 다른 글

SHT85 Datasheet  (1) 2019.04.12
제조 분야 AI-ML 적용 사례 - BISTel 김현진  (0) 2019.03.07
LattePanda Alpha  (0) 2018.04.24
Key note 1 SKT 5G 추진 전략 박진효 SKT NW  (0) 2017.03.23
SKT 5G & IoT NWLoRa등 추진 및 개발  (0) 2017.01.26
Posted by 조용문

'IoT' 카테고리의 다른 글

SHT85 Datasheet  (1) 2019.04.12
제조 분야 AI-ML 적용 사례 - BISTel 김현진  (0) 2019.03.07
LattePanda Alpha  (0) 2018.04.24
Key note 1 SKT 5G 추진 전략 박진효 SKT NW  (0) 2017.03.23
SKT IoT 생태계 활성화 정책  (0) 2017.01.26
Posted by 조용문

BLOG main image
by 조용문

공지사항

카테고리

분류 전체보기 (69)
사진 (9)
흙건축 (15)
스틸하우스 (9)
D.I.Y (6)
프로그램 (0)
이동통신 (6)
농업 (1)
IoT (8)
엑셀VBA (13)

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

태그목록

글 보관함

달력

«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Total :
Today : Yesterday :