Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Commit

Permalink
Removed static IP from website
Browse files Browse the repository at this point in the history
  • Loading branch information
thebigpotatoe committed Dec 7, 2019
1 parent 4c15f66 commit 98adf25
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions Super_Simple_RGB_WiFi_Lamp/Web_Page.ino
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ const char websiteSource[] PROGMEM =
"\n"
" function connectToWebsockets() {\n"
"\n"
" // websock = new WebSocket('ws://' + window.location.hostname + ':81/');\n"
" websock = new WebSocket('ws://192.168.0.102:81/');\n"
" // websock = new WebSocket('ws://localhost:1880/light');\n"
" websock = new WebSocket('ws://' + window.location.hostname + ':81/');\n"
"\n"
" $(\"#currentModeLabel\").html(\"Connecting to lamp...\")\n"
" websock.onopen = function (evt) {\n"
Expand Down
4 changes: 1 addition & 3 deletions Website/_Complete_Website.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@

function connectToWebsockets() {

// websock = new WebSocket('ws://' + window.location.hostname + ':81/');
websock = new WebSocket('ws://192.168.0.102:81/');
// websock = new WebSocket('ws://localhost:1880/light');
websock = new WebSocket('ws://' + window.location.hostname + ':81/');

$("#currentModeLabel").html("Connecting to lamp...")
websock.onopen = function (evt) {
Expand Down
4 changes: 1 addition & 3 deletions Website/_Developement_Website copy.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@

function connectToWebsockets() {

// websock = new WebSocket('ws://' + window.location.hostname + ':81/');
websock = new WebSocket('ws://192.168.0.102:81/');
// websock = new WebSocket('ws://localhost:1880/light');
websock = new WebSocket('ws://' + window.location.hostname + ':81/');

$("#currentModeLabel").html("Connecting to lamp...")
websock.onopen = function (evt) {
Expand Down
4 changes: 1 addition & 3 deletions Website/_Static_Website.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@

function connectToWebsockets() {

// websock = new WebSocket('ws://' + window.location.hostname + ':81/');
websock = new WebSocket('ws://192.168.0.102:81/');
// websock = new WebSocket('ws://localhost:1880/light');
websock = new WebSocket('ws://' + window.location.hostname + ':81/');

$("#currentModeLabel").html("Connecting to lamp...")
websock.onopen = function (evt) {
Expand Down

0 comments on commit 98adf25

Please sign in to comment.