This file contains hidden or 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> | |
#include <ESP8266HTTPClient.h> | |
#include <Arduino.h> | |
const char* ssid = "*******"; // insert your SSID | |
const char* password = "*****"; // insert your password | |
const char* host = "smth.smth.com"; //Server where the PHP is, you'll need to find a way to host the PHP, because the ESP doesnt support HTTPs | |
const int httpPort = 80; // Server Port, most servers use 80 | |
const int pinLed = 2; // led pin for telling when updating |
This file contains hidden or 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
//Developed by Rajarshi Roy | |
import java.awt.Robot; //java library that lets us take screenshots | |
import java.awt.AWTException; | |
import java.awt.event.InputEvent; | |
import java.awt.image.BufferedImage; | |
import java.awt.Rectangle; | |
import java.awt.Dimension; | |
import processing.serial.*; //library for serial communication | |
This file contains hidden or 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
// Output | |
int redPin = 9; // Red LED, connected to digital pin 9 | |
int greenPin = 10; // Green LED, connected to digital pin 10 | |
int bluePin = 11; // Blue LED, connected to digital pin 11 | |
long int inByte; | |
int wait = 10; //10ms | |
void setup() |
This file contains hidden or 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
/*ESP UPVOTE NOTIFY, BASED ON | |
* http://www.kendricktabi.com/2015/08/esp8266-and-nokia-5110-lcd.html | |
* and http://arduinomeetslinux.com/beyond.php?p=3 | |
* ---Dicamarques | |
* includes a BMP of an upvote, 48*48, couldnt make it work | |
* https://www.reddit.com/r/arduino/comments/41ly7p/for_every_upvote_this_thread_gets_my_arduino_will/ | |
* | |
*/ | |
#include <ESP8266WiFi.h> |
This file contains hidden or 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
/* | |
IoT Manager mqtt device client https://play.google.com/store/apps/details?id=ru.esp8266.iotmanager | |
Based on Basic MQTT example with Authentication | |
PubSubClient library v 1.91.1 https://github.com/Imroy/pubsubclient | |
- connects to an MQTT server, providing userdescr and password | |
- publishes config to the topic "/IoTmanager/config/deviceID/" | |
- subscribes to the topic "/IoTmanager/hello" ("hello" messages from mobile device) | |
Tested with Arduino IDE 1.6.6 + ESP8266 Community Edition v 2.0.0-stable and PubSubClient library v 1.91.1 https://github.com/Imroy/pubsubclient | |
ESP8266 Community Edition v 2.0.0-stable have some HTTPS issues. Push notification temporary disabled. |