correct compilation error for arduino
This commit is contained in:
1 parent
f39422d23c
commit
d071ca8d0e
2 files changed
+6
-8
No files matched your search
+4
-6
@@ -155,7 +155,7 @@ void setup_wifi() {
|
|||||||
IPAddress ip_adress(ip);
|
IPAddress ip_adress(ip);
|
||||||
IPAddress gateway_adress(gateway);
|
IPAddress gateway_adress(gateway);
|
||||||
IPAddress subnet_adress(subnet);
|
IPAddress subnet_adress(subnet);
|
||||||
IPAddress dns_adress(dns);
|
IPAddress dns_adress(Dns);
|
||||||
WiFi.begin(wifi_ssid, wifi_password);
|
WiFi.begin(wifi_ssid, wifi_password);
|
||||||
WiFi.config(ip_adress,gateway_adress,subnet_adress); //Uncomment this line if you want to use advanced network config
|
WiFi.config(ip_adress,gateway_adress,subnet_adress); //Uncomment this line if you want to use advanced network config
|
||||||
trc("OpenMQTTGateway ip adress: ");
|
trc("OpenMQTTGateway ip adress: ");
|
||||||
@@ -169,12 +169,10 @@ void setup_wifi() {
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void setup_ethernet() {
|
void setup_ethernet() {
|
||||||
|
|
||||||
Ethernet.begin(mac, ip); //Comment and uncomment the following line if you want to use advanced network config
|
Ethernet.begin(mac, ip); //Comment and uncomment the following line if you want to use advanced network config
|
||||||
//Ethernet.begin(mac, ip, dns, gateway, subnet);
|
//Ethernet.begin(mac, ip, Dns, gateway, subnet);
|
||||||
trc("My IP address is: ");
|
trc("OpenMQTTGateway ip adress: ");
|
||||||
trc(String(Ethernet.localIP()));
|
Serial.println(Ethernet.localIP());
|
||||||
|
|
||||||
trc(F("Ethernet connected"));
|
trc(F("Ethernet connected"));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+2
-2
@@ -47,9 +47,9 @@ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFT
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
const byte ip[] = { 192, 168, 1, 99 }; //ip adress
|
const byte ip[] = { 192, 168, 1, 99 }; //ip adress
|
||||||
// Advanced network config (optional) if you want to use these parameters uncomment line 158 and 172 of OpenMQTTGateway.ino
|
// Advanced network config (optional) if you want to use these parameters uncomment line 158, 172 and comment line 171 of OpenMQTTGateway.ino
|
||||||
const byte gateway[] = { 192, 168, 1, 1 }; //ip adress
|
const byte gateway[] = { 192, 168, 1, 1 }; //ip adress
|
||||||
const byte dns[] = { 192, 168, 1, 1 }; //ip adress
|
const byte Dns[] = { 192, 168, 1, 1 }; //ip adress
|
||||||
const byte subnet[] = { 255, 255, 255, 0 }; //ip adress
|
const byte subnet[] = { 255, 255, 255, 0 }; //ip adress
|
||||||
|
|
||||||
//Addons management, comment the line if you don't use
|
//Addons management, comment the line if you don't use
|
||||||
|
|||||||
Reference in new issue
Block a user