I have trouble using arduinoCloud

sandeepmistry:
Hi @lsj10147,

mqtt.arduino.cc does not have an HTTPS server running, only MQTTS. To properly test you'll have to change the port in the sketch from 443 to 8883.

Thank you very much @sandeepmistry. I changed

char server[] = "www.google.com";
to
char server[] = "mqtt.arduino.cc";

and

if (client.connect(server, 443)) {
to
if (client.connect(server, 8883)) {

without success. Really though, I'm mainly trying to get the sketch that Arduino Cloud generates for my MKR1000 to work properly. I only started playing around with WiFiSSLClient in an attempt to troubleshoot since I hadn't gotten a reply on the forum yet.

Do you have any idea why the default sketch generated by Arduino Cloud for my MKR1000 would get stuck at "Connecting to MQTT broker..."? My configuration is described earlier in this thread, in the Feb 02, 2017, 06:31 pm post. I'd very much appreciate any suggestions you might have.