Original by chriscook8 from esp8266.com I just modified to use ESP8266WebServer library for easy to handle the http request.
This is sample code not yet complete.
- when Wifi connected need to close the softAP.
// 80MHZ NODEMCU V.1 | |
// slackbot testing using https://github.com/urish/arduino-slack-bot | |
/** | |
Arduino Real-Time Slack Bot | |
Copyright (C) 2016, Uri Shaked. | |
Licensed under the MIT License | |
*/ |
// https://github.com/urish/arduino-slack-bot | |
#include <Arduino.h> | |
#include <Hash.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <ESP8266HTTPClient.h> | |
#include <WebSocketsClient.h> | |
#include <ArduinoJson.h> | |
#define WIFI_SSID "接続したいSSID" |
/* | |
* This sketch demonstrates how to use ESP8266 to control Xiaomi Yi Camera. | |
* | |
* @author Emmanuel Granatello | |
* @version 0.1 | |
* @since 2016-02-16 | |
*/ | |
#include "ESP8266WiFi.h" | |
// how long each led stays on for | |
int delayTime = 1; | |
//how long between each | |
int charBreak = 3; | |
//how long to wait after the message is finished before it repeats | |
int resetTime = 20; | |
int LED1 = 2; | |
int LED2 = 3; | |
int LED3 = 4; |
Blynk Web Dashboard | |
------ | |
A [Pen](http://codepen.io/shrikantgg/pen/oYgoxm) by [shrikant](http://codepen.io/shrikantgg) on [CodePen](http://codepen.io/). | |
[License](http://codepen.io/shrikantgg/pen/oYgoxm/license). |
//Almost entirelly lifted directly from https://github.com/igrr/esp32-cam-demo | |
//Just clocked a little differently and has chained buffers. | |
//This totes works with the I2S bus on the ESP32 for READING 16 wires simultaneously. | |
//Can be clocked off of I2S's internal controller or an external clock. | |
#define I2S_D0 4 | |
#define I2S_D1 5 | |
#define I2S_D2 18 | |
#define I2S_D3 19 | |
#define I2S_D4 36 |
/* | |
* This sketch sends ads1115 current sensor data via HTTP POST request to thingspeak server. | |
* It needs the following libraries to work (besides the esp8266 standard libraries supplied with the IDE): | |
* | |
* - https://github.com/adafruit/Adafruit_ADS1X15 | |
* | |
* designed to run directly on esp8266-01 module, to where it can be uploaded using this marvelous piece of software: | |
* | |
* https://github.com/esp8266/Arduino | |
* |
$("#selectBox").append('<option value="option6">option6</option>'); |