I would like to use a Cayenne in my existing project, but the problem that there already exists connection to the Internet. so is the way to use the existing connection to the Internet instead of initialization of own connection in string Cayenne.begin (имя пользователя, пароль, clientID, ssid, wifiPassword);?
WiFi.begin(ssid, wifiPassword);
int conncnt = 0;
String s = "Connect ";
while (WiFi.status() != WL_CONNECTED) {
delay(500);
s = s + ".";
display.print(const_cast<char*>((s).c_str()), 2);
Serial.println("Connect " + String(conncnt));
if (conncnt == 10) break;
conncnt += 1; }
Cayenne.begin(username, password, clientID, ssid, wifiPassword);
moreover, if wifi couldn’t be found, we have to skip connection and run Loop.
Are you using an Ethernet adapter? There are different files for the different connection types, sounds like you need to use the Arduino Ethernet connection instead of wifi. Cayenne Features - Developer | myDevices.com