Fixes
This commit is contained in:
parent
8975eb785b
commit
d67bac14e9
@ -5,9 +5,9 @@
|
|||||||
#include <ArduinoJson.h>
|
#include <ArduinoJson.h>
|
||||||
|
|
||||||
//Variables
|
//Variables
|
||||||
const char* ssid = "SteelAntsNET";
|
const char* ssid = "";
|
||||||
const char* pasw = "tgr786hgtp3CZ";
|
const char* pasw = "";
|
||||||
const char* hwId = "JOK3R";
|
const char* hwId = "";
|
||||||
const char* url = "http://dev.steelants.cz/vasek/home/api.php";
|
const char* url = "http://dev.steelants.cz/vasek/home/api.php";
|
||||||
int unsuccessfulRounds = 0;
|
int unsuccessfulRounds = 0;
|
||||||
|
|
||||||
@ -90,8 +90,8 @@ void loop() {
|
|||||||
|
|
||||||
//Set static ip
|
//Set static ip
|
||||||
IPAddress staticIpAddress;
|
IPAddress staticIpAddress;
|
||||||
IPAddress subnetIpAddress(192,168,0,1);
|
IPAddress subnetIpAddress(192,168,0,1);
|
||||||
IPAddress gatewayIpAddress(255, 255, 255, 0);
|
IPAddress gatewayIpAddress(255, 255, 255, 0);
|
||||||
|
|
||||||
if (staticIpAddress.fromString(ipAddress)) {
|
if (staticIpAddress.fromString(ipAddress)) {
|
||||||
WiFi.config(staticIpAddress, subnetIpAddress, gatewayIpAddress);
|
WiFi.config(staticIpAddress, subnetIpAddress, gatewayIpAddress);
|
||||||
|
Loading…
Reference in New Issue
Block a user