File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 25
25
"DISCO_L475VG_IOT01A" : {
26
26
"target.components_add" : [" ism43362" ],
27
27
"ism43362.provide-default" : true ,
28
+ "target.network-default-interface-type" : " WIFI" ,
28
29
"target.macros_add" : [" MBEDTLS_SHA1_C" ]
29
30
},
30
31
"K64F" : {
Original file line number Diff line number Diff line change 16
16
17
17
#include " mbed.h"
18
18
#include " wifi_helper.h"
19
+ #include " mbed-trace/mbed_trace.h"
19
20
20
21
#if MBED_CONF_APP_USE_TLS_SOCKET
21
22
#include " root_ca_cert.h"
@@ -89,7 +90,7 @@ class SocketDemo {
89
90
printf (" Error: _socket.set_root_ca_cert() returned %d\n " , result);
90
91
return ;
91
92
}
92
- _socket.set_hostname (" ifconfig.io " );
93
+ _socket.set_hostname (MBED_CONF_APP_HOSTNAME );
93
94
#endif // MBED_CONF_APP_USE_TLS_SOCKET
94
95
95
96
/* now we have to find where to connect */
@@ -251,7 +252,11 @@ class SocketDemo {
251
252
int main () {
252
253
printf (" \r\n Starting socket demo\r\n\r\n " );
253
254
254
- SocketDemo *example = new SocketDemo;
255
+ #ifdef MBED_CONF_MBED_TRACE_ENABLE
256
+ mbed_trace_init ();
257
+ #endif
258
+
259
+ SocketDemo *example = new SocketDemo ();
255
260
MBED_ASSERT (example);
256
261
example->run ();
257
262
You can’t perform that action at this time.
0 commit comments