Skip to content

Instantly share code, notes, and snippets.

ESP8266 Web Server to storing ap config to EEPROM.

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.

Todo

  • when Wifi connected need to close the softAP.
@seco
seco / ESP8266_Xiaomi_Yi_Remote_Controller.ino
Created March 10, 2017 04:30 — forked from emmynet/ESP8266_Xiaomi_Yi_Remote_Controller.ino
Simple test to control Xiaomi Yi camera with a standalone ESP8266 ESP-01 (costs about 2$ on ebay).
/*
* 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"
@seco
seco / slack_test.ino
Created April 3, 2017 07:46 — forked from NaotoKumagai/slack_test.ino
SlackBOTのコードを少し改変
// 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"
@seco
seco / esp8266-lgwhisen-slack-bot.ino
Created April 5, 2017 05:27 — forked from chaeplin/esp8266-lgwhisen-slack-bot.ino
esp8266-lgwhisen-slack-bot.ino
// 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
*/
@seco
seco / lgacdecode.ino
Created April 5, 2017 05:27 — forked from chaeplin/lgacdecode.ino
lgacdecode.ino
#include <IRremoteESP8266.h>
//#include <IRremote.h>
int RECV_PIN = 14;
IRrecv irrecv(RECV_PIN);
void setup ( )
{
Serial.begin(115200);
irrecv.enableIRIn();
@seco
seco / Energy_Monitor_Real.ino
Created April 5, 2017 05:29 — forked from chaeplin/Energy_Monitor_Real.ino
ESP8266 Energy Monitor Real Power
/*
* 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
*
@seco
seco / dht22_deepsleep.ino
Created April 5, 2017 05:29 — forked from chaeplin/dht22_deepsleep.ino
dht22_deepsleep.ino
// CPU 80MHZ, FLASH 4M/1M
/*
*** Sample using esp-01, D16 is connected to RST
*** If DHT22 is powered by a gpio( VCC of DHT22 is connected to a gpio) and OUTPUT of DHT22 is connected to D2, boot will fail.
*** Power off ----> D2 is in LOW( == DHT22 is in LOW) ==> SDIO boot mode.
Temperature and humidity values are each read out the results of the last measurement.
For real-time data that need continuous read twice, we recommend repeatedly to read sensors,
and each read sensor interval is greater than 2 seconds to obtain accuratethe data.
@seco
seco / receiver.ino
Created April 5, 2017 05:32 — forked from rlogiacco/receiver.ino
nRF24 multiple transmitters
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
int senderId;
// Set up nRF24L01 radio on SPI bus plus pins 9 & 10
//Contacts from the radio to connect NRF24L01 pinamnam -> Arduino
@seco
seco / slack.php
Created April 7, 2017 07:34 — forked from stefanzweifel/slack.php
Slack.com Webhook Integration (PHP) - Simple snippet which tells you, how to build your payload array.
<?php
//Options
$token = 'YOUR_TOKEN_HERE';
$domain = 'YOUR_SLACK_DOMAIN_GOES_HERE';
$channel = '#general';
$bot_name = 'Webhook';
$icon = ':alien:';
$message = 'Your message';
/*
* XSS filter
*
* This was built from numerous sources
* (thanks all, sorry I didn't track to credit you)
*
* It was tested against *most* exploits here: http://ha.ckers.org/xss.html
* WARNING: Some weren't tested!!!
* Those include the Actionscript and SSI samples, or any newer than Jan 2011
*