The code in this repository will allow you to control your NodeMCU via WiFi. That is currently limited to reading and writing the digital pins. The client library is implemented for python. It should be very easy to port, though.
A controller program needs to be installed on the NodeMCU's ESP8266 and other computers can use the client code to control the NodeMCU via a UDP connection over WiFi.
The code is probably not fast enough for high performance controls, but it's enough for small control processes or activating/deactivating peripherals remotely or based on time.
The program running on the NodeMCU (udpcontroller) either connects to your WiFi or opens an access point. After connecting to your WiFi or that access point, you can use python scripts using the library in the directory client/ to control the NodeMCUs digital pins. This library talks to the server on the NodeMCU via a UDP protocol that synchronizes the state of the inputs either to or from the NodeMCU.
More information on the Python library
TODO
This guide assumes that you already configured the Arduino IDE to use with your NodeMCU.
- Download this repository
- Open the credentials.c file in udpcontroller/ and edit the credentials to your liking
- Open the udpcontroller program in the Arduino IDE
- Look at the options (#defines) and set them as you want
- Compile and flash the program
- Use the python programs/library in the client folder