Skip to content

Instantly share code, notes, and snippets.

@MDevolution
MDevolution / gist:b64de8db4b06d0069c3ca9b63f3a7f3f
Created May 2, 2020 14:43
Wemos + Si7010 - Simple WebServer
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <Hash.h>
#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include "Adafruit_Si7021.h"
Adafruit_Si7021 sensor = Adafruit_Si7021();
// Replace with your network credentials
#include "CTBot.h"
#include "Adafruit_Si7021.h"
// Initialize Wifi connection to the router
String ssid = "";
String pass = "";
// Initialize Telegram BOT
#include <ESP8266WiFi.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <ThingSpeak.h>
#define ONE_WIRE_BUS 4
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature DS18B20(&oneWire);
#include <ESP8266WiFi.h>
// Replace with your SSID and Password
const char* ssid = "";
const char* password = "";
// Replace with your unique IFTTT URL resource
const char* resource = "";
@MDevolution
MDevolution / nodemcu_server
Last active March 15, 2022 21:06
Web Server con NodeMCU ESP8266
// Load Wi-Fi library
#include <ESP8266WiFi.h>
// Replace with your network credentials
const char* ssid = "REPLACE_WITH_YOUR_SSID";
const char* password = "REPLACE_WITH_YOUR_PASSWORD";
// Set web server port number to 80
WiFiServer server(80);
#include <ESP8266WiFi.h>
#include "ThingSpeak.h"
#include <Adafruit_BME280.h>
#include <Adafruit_Sensor.h>
const char* ssid = "REPLACE_WITH_YOUR_SSID"; // your network SSID (name)
const char* password = "REPLACE_WITH_YOUR_PASSWORD"; // your network password
WiFiClient client;