Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxSoEn authored Oct 28, 2021
0 parents commit bbf1c61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
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.

Copy link
@MaxSoEn

MaxSoEn Oct 28, 2021

Author Owner

-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

  1. for esp8266 and nodeMCU use these libraries :
    #include <ESP8266WiFi.h>
    #include <WebSocketsClient.h>
  2. for esp32 use these libraries
    #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

0 comments on commit bbf1c61

Please sign in to comment.