Skip to content

Instantly share code, notes, and snippets.

@chaeplin
Created May 29, 2016 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chaeplin/931c7e5b4d6e993c93acae85cfd6e136 to your computer and use it in GitHub Desktop.
Save chaeplin/931c7e5b4d6e993c93acae85cfd6e136 to your computer and use it in GitHub Desktop.
for_kozoke.ino
#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
#include <PubSubClient.h>
#include <Average.h>
#include <pgmspace.h>
#include <Wire.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
//#include "/usr/local/src/ap_setting.h" // comment out this line
// add following and change values
#define WIFI_SSID "WIFI_SSID_CHAGE_THIS"
#define WIFI_PASSWORD "WIFI_PASS_CHAGE_THIS"
#define MQTT_SERVER { 192, 168, 10, 10 } // server ip of mgtt
#define OTA_PASSWORD "OTA_PASSWORD_CHANGE_THIS" // OTA password
extern "C" {
#include "user_interface.h"
}
#define SYS_CPU_80MHz 80
#define SYS_CPU_160MHz 160
#define nemoisOnPin 14
#define ledPin 13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment