File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
libraries/SocketWrapper/src Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ class MbedSSLClient : public arduino::MbedClient {
62
62
mbed::BlockDevice* root = mbed::BlockDevice::get_default_instance ();
63
63
err = root->init ();
64
64
if ( err != 0 ) {
65
+ Serial.print (" root->init(): " );
66
+ Serial.println (err);
65
67
return err;
66
68
}
67
69
@@ -70,17 +72,23 @@ class MbedSSLClient : public arduino::MbedClient {
70
72
71
73
err = wifi.mount (&wifi_data);
72
74
if (err) {
75
+ Serial.print (" wifi.mount()" );
76
+ Serial.println (err);
73
77
return err;
74
78
}
75
79
76
80
err = ((TLSSocket*)sock)->set_root_ca_cert_path (" /wlan/" );
77
81
if ( err != NSAPI_ERROR_OK) {
82
+ Serial.print (" sock->set_root_ca_cert_path()" );
83
+ Serial.println (err);
78
84
return err;
79
85
}
80
86
#endif
81
87
82
88
if (_ca_cert_custom != NULL ) {
83
89
err = ((TLSSocket*)sock)->append_root_ca_cert (_ca_cert_custom);
90
+ Serial.print (" sock->append_root_ca_cert()" );
91
+ Serial.println (err);
84
92
}
85
93
return err;
86
94
}
You can’t perform that action at this time.
0 commit comments