Through testing of P2 Eval board and Adafruit Ethernet Featherwing I have established that cloud connection after ethernet connected (which is very fast) is very long and often times out (I have set connection timeout to be 60 seconds). The connection with WiFi followed by cloud is reasonably short / normal. Any clues as to my ethernet cloud connection is so slow and unreliable? Is this something to do with the router and LAN settings?
Is it stuck in fast blinking green or blinking cyan? If it's fast blinking green, then it's DHCP that's taking a long time. If it's blinking cyan, then it's probably something with UDP packets. You could try enabling more logging and see if anything shows up.
SerialLogHandler logHandler(LOG_LEVEL_ALL);
It is fast blinking cyan - the timeout occurs when sending the Coap messages.
This is the log
0000007888 [system] INFO: Cloud socket connected
0000007908 [system] INFO: Starting handshake: presense_announce=0
0000007934 [comm.protocol.handshake] INFO: Establish secure connection
0000007964 [comm.dtls] INFO: session has 0 uses
0000007992 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=0
0000008026 [comm.dtls] INFO: out_ctr 0,1,0,0,0,0,2,208, next_coap_id=2ae
0000008062 [comm.dtls] INFO: restored session from persisted session data. next_msg_id=686
0000008106 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 2
0000008952 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 4
0000008982 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 3
0000009014 [comm.protocol.handshake] INFO: Sending HELLO message
0000009046 [comm.coap] TRACE: Sending CoAP message
0000009070 [comm.coap] TRACE: CON POST /h size=39 token= id=687
0000013155 [comm.coap] TRACE: Retransmitting CoAP message; ID: 687; attempt 1 of 3
0000013194 [comm.coap] TRACE: Sending CoAP message
0000013218 [comm.coap] TRACE: CON POST /h size=39 token= id=687
0000025108 [comm.coap] TRACE: Retransmitting CoAP message; ID: 687; attempt 2 of 3
0000025239 [comm.coap] TRACE: Sending CoAP message
0000025264 [comm.coap] TRACE: CON POST /h size=39 token= id=687
0000041951 [comm.coap] TRACE: Retransmitting CoAP message; ID: 687; attempt 3 of 3
0000041987 [comm.coap] TRACE: Sending CoAP message
0000042011 [comm.coap] TRACE: CON POST /h size=39 token= id=687