My Arduino Uno connected to a local server running on my Mac can’t obtain an IP address. Serial monitor reports a DHCP error.
Mac is connected to my TP-link router via Wi-Fi (local IP 192.168.0.101).
Blynk app is set to connect to 192.168.0.101 via port 8443.
ENC28J60 is connected to TP-LINK routers ethernet port.
In my sketch i have <Blynk.begin(auth, IPAddress(192,168,0,101), 8442);>
I am not experienced in networking so I dont know if Ethernet connected hardware can connect to a Wi-Fi connected device (which are on the same network).
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <UIPEthernet.h>
#include <BlynkSimpleUIPEthernet.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "d***************************************************0f";
void setup()
{
Serial.begin(9600);
//Blynk.begin(auth);
// You can also specify server.
// For more options, see Boards_Ethernet/Arduino_Ethernet_Manual example
//Blynk.begin(auth, "blynk-cloud.com", 8442);
Blynk.begin(auth, IPAddress(192,168,0,101), 8442);
}
void loop()
{
Blynk.run();
}
Common problem and Serial Monitor doesn’t really give you a warning unless you have experienced it before i.e. it gives you an IP and you think the ENC is fully operational, when it’s not.