This file contains 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
/* | |
* 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> |
This file contains 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
#!/usr/bin/env python | |
import paho.mqtt.client as mqtt | |
import RPi.GPIO as GPIO | |
def on_connect(client, userdata, rc): | |
#print ("Connected with rc: " + str(rc)) | |
client.subscribe("kwf/demo/led") | |
def on_message(client, userdata, msg): |
- Esp32 Repository
- Esp n Stm32
- Microphyton GUI Lvgl
- Inline Activity Result
- Handling activity Result with Kotlin,Rxjava
OlderNewer