-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bbf1c61
Showing
1 changed file
with
2 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# online-led-control | ||
first real project of IOT that alows you to control the brightness of the RGB Led using web server | ||
This comment has been minimized.
Sorry, something went wrong. |
-to run server first you need to install Node.js
link: https://nodejs.org/en/download/
-to edit server or webpage you you can use visual studio code
link: https://code.visualstudio.com/download
-for aduino you need these libraries
#include <ESP8266WiFi.h>
#include <WebSocketsClient.h>
#include <WiFi.h>
#include <WebSocketsClient.h>
#include <analogWrite.h>
-change these vlaues depend on your server's settings:
//Wi-Fi settings:
const char *ssid = "Wireless Name";
const char *pass = "Your Password";
//server ip , port number and page URL
#define SERVER "192.168.43.170"
#define PORT 80
#define URL "/"
//pins that RGB Led connected to:
#define redPin 32
#define greenPin 33
#define bluePin 25