I have a post here that shows how to use pubsubclient to connect, but from your output that’s not what you are doing. What do you mean by manual connection?
Ah, yes forgot about that one. @teras.olive if you are getting that exact output where it stops mid print then I would suggest checking your power supply, or trying another one.
#define CAYENNE_DEBUG // Uncomment to show debug messages #define CAYENNE_PRINT Serial // Comment this out to disable prints and save space #include <CayenneMQTTEthernet.h>
//#include <CayenneMQTTEthernetW5500.h> // Uncomment this and comment out CayenneMQTTEthernet.h to use an Ethernet 2 shield or other Ethernet W5500 shield.
// You will need the Ethernet2 library installed. See the ArduinoEthernetW5500 example sketch for more info.
//#include <CayenneMQTTEthernetW5200.h> // Uncomment this and comment out CayenneMQTTEthernet.h to use an Ethernet W5200 shield.
// You will need the EthernetW5200 library installed. See the ArduinoEthernetW5200 example sketch for more info. #include <MemoryFree.h> #include “DHT.h”
// Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
char username = " ";
char password = " ";
char clientID = " ";
// Mac address should be different for each device in your LAN
byte arduino_mac = { 0x00, 0x01, 0xBA, 0xFE, 0xFE, 0xCC };
IPAddress arduino_ip(10, XXX, XXX, XXX);
IPAddress dns_ip(10, XXX, XXX, XXX);
IPAddress gateway_ip(10, XXX, XXX, XXX);
IPAddress subnet_mask(255, XXX, XXX, XXX);