Skip to content

Instantly share code, notes, and snippets.

View halimbimantara's full-sized avatar
📡
Working Remote

Halim Bimantara halimbimantara

📡
Working Remote
View GitHub Profile
/*
* This sketch demonstrates how to set up a simple HTTP-like server.
* The server will set a GPIO pin depending on the request
* http://server_ip/gpio/0 will set the GPIO2 low,
* http://server_ip/gpio/1 will set the GPIO2 high
* server_ip is the IP address of the ESP8266 module, will be
* printed to Serial when the module is connected.
*/
#include <ESP8266WiFi.h>