How can i include cayenne functionality in an sketch that already has WiFi running?

Cayenne.looo() function must be called regularly. This allows the client to maintain the connection and check for any incoming messages. As sending data at one-second interval is not best practise Sending MQTT messages within rate limits