Skip to content

Commit d8e044f

Browse files
adding debug info
1 parent 5acfe00 commit d8e044f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libraries/SocketWrapper/src/MbedSSLClient.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ class MbedSSLClient : public arduino::MbedClient {
6262
mbed::BlockDevice* root = mbed::BlockDevice::get_default_instance();
6363
err = root->init();
6464
if( err != 0) {
65+
Serial.print("root->init(): ");
66+
Serial.println(err);
6567
return err;
6668
}
6769

@@ -70,17 +72,23 @@ class MbedSSLClient : public arduino::MbedClient {
7072

7173
err = wifi.mount(&wifi_data);
7274
if (err) {
75+
Serial.print("wifi.mount()");
76+
Serial.println(err);
7377
return err;
7478
}
7579

7680
err = ((TLSSocket*)sock)->set_root_ca_cert_path("/wlan/");
7781
if( err != NSAPI_ERROR_OK) {
82+
Serial.print("sock->set_root_ca_cert_path()");
83+
Serial.println(err);
7884
return err;
7985
}
8086
#endif
8187

8288
if(_ca_cert_custom != NULL) {
8389
err = ((TLSSocket*)sock)->append_root_ca_cert(_ca_cert_custom);
90+
Serial.print("sock->append_root_ca_cert()");
91+
Serial.println(err);
8492
}
8593
return err;
8694
}

0 commit comments

Comments
 (0)