This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> //WIFI | |
#include <WiFiUdp.h> | |
#include "esp_NTPClient.h" //NTP | |
#include <WiFiClientSecure.h> | |
#include "esp_DHTesp.h" //DHT 11 | |
float Temp = 0; //溫度 | |
float HUM = 0; //濕度 | |
String T_Time; //NTP取出時間 | |
String T_Time_STR; //NTP取出時間,換成int的中繼站 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> //WIFI | |
#include <WiFiUdp.h> | |
#include "esp_NTPClient.h" //NTP | |
#include <WiFiClientSecure.h> | |
#include "esp_DHTesp.h" //DHT 11 | |
float Temp = 0; //溫度 | |
float HUM = 0; //濕度 | |
String T_Time; //NTP取出時間 | |
String T_Time_STR; //NTP取出時間,換成int的中繼站 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////// | |
// RemoteXY include library // | |
////////////////////////////////////////////// | |
// RemoteXY select connection mode and include library | |
#define REMOTEXY_MODE__ESP32CORE_WIFI_POINT | |
#include <WiFi.h> | |
#include <RemoteXY.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> // Required for 16 MHz Adafruit Trinket | |
#endif | |
#define LED_PIN 4 | |
#define LED_COUNT 10 | |
Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <WiFi.h> | |
#include <WiFiMulti.h> | |
WiFiMulti wifiMulti; | |
#define LED_BUILTIN 2 // 連接到WIFI時,亮內建的LED | |
//連接LINE | |
#include <WiFiClientSecure.h> | |
WiFiClientSecure Secure_client; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <WiFi.h> | |
#include <WiFiMulti.h> | |
WiFiMulti wifiMulti; | |
#define LED_BUILTIN 2 // 連接到WIFI時,亮內建的LED | |
//連接LINE | |
#include <WiFiClientSecure.h> | |
WiFiClientSecure Secure_client; | |
String LINE_TOKEN; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <NTPClient.h> //NTP library | |
#include <WiFiUdp.h> | |
#include <WiFi.h> | |
//多個SSID自動連接library | |
#include <WiFiMulti.h> | |
WiFiMulti wifiMulti; | |
//WS2812B 設定 | |
#include <Adafruit_NeoPixel.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <WiFi.h> | |
#include <NTPClient.h> | |
#include <WiFiUdp.h> | |
// Replace with your network credentials | |
const char* ssid = "book"; | |
const char* password = "12345678"; | |
// Define NTP Client to get time | |
WiFiUDP ntpUDP; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef ESP32 | |
#include <WiFi.h> | |
#include <AsyncTCP.h> | |
#else | |
#include <ESP8266WiFi.h> | |
#include <ESPAsyncTCP.h> | |
#endif | |
#include <ESPAsyncWebServer.h> | |
// Replace with your network credentials 輸入WIFI的SSID和密碼 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef ESP32 | |
#include <WiFi.h> | |
#else | |
#include <ESP8266WiFi.h> | |
#endif | |
#include <WiFiClientSecure.h> | |
#include <UniversalTelegramBot.h> // Universal Telegram Bot Library written by Brian Lough: https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot | |
#include <ArduinoJson.h> | |
// Replace with your network credentials |
NewerOlder