We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46c8b0a + d9cbf24 commit 6d64213Copy full SHA for 6d64213
mbed_cloud_client_user_config.h
@@ -20,9 +20,13 @@
20
#define MBED_CLOUD_CLIENT_USER_CONFIG_H
21
22
#define MBED_CLOUD_CLIENT_ENDPOINT_TYPE "default"
23
-#define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP
24
#define MBED_CLOUD_CLIENT_LIFETIME 3600
25
+// Application can override the default transport mode via `target.macros_add` definition in mbed_app.json.
26
+#if !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP) && !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP) && !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP_QUEUE)
27
+#define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP
28
+#endif
29
+
30
#ifdef MBED_CONF_MBED_CLIENT_SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE
31
#define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE MBED_CONF_MBED_CLIENT_SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE
32
#else
0 commit comments