Commit a17eae41 authored by Deomid Ryabkov's avatar Deomid Ryabkov Committed by Cesanta Bot

Enable MQTT client by default

PUBLISHED_FROM=cb5d5afe166f637082d4b1d1bce5d9c263e91fd0
parent 7b05d700
......@@ -4,7 +4,7 @@ title: Enabling flags
- `MG_ENABLE_SSL` Enable [SSL/TLS support](https://docs.cesanta.com/mongoose/master/#/http/ssl.md/) (OpenSSL API)
- `MG_ENABLE_IPV6` Enable IPv6 support
- `MG_ENABLE_MQTT` enable [MQTT client](https://docs.cesanta.com/mongoose/master/#/mqtt/client_example.md/)
- `MG_ENABLE_MQTT` enable [MQTT client](https://docs.cesanta.com/mongoose/master/#/mqtt/client_example.md/) (on by default, set to 0 to disable)
- `MG_ENABLE_MQTT_BROKER` enable [MQTT broker](https://docs.cesanta.com/mongoose/master/#/mqtt/server_example.md/)
- `MG_ENABLE_DNS_SERVER` enable DNS server
- `MG_ENABLE_COAP` enable CoAP protocol
......
PROG = mqtt_client
MODULE_CFLAGS = -DMG_ENABLE_MQTT -DMG_ENABLE_HTTP=0
MODULE_CFLAGS = -DMG_ENABLE_HTTP=0
SSL_LIB=openssl
include ../examples.mk
......@@ -1584,7 +1584,7 @@ const char *c_strnstr(const char *s, const char *find, size_t slen);
#endif
#ifndef MG_ENABLE_MQTT
#define MG_ENABLE_MQTT 0
#define MG_ENABLE_MQTT 1
#endif
#ifndef MG_ENABLE_MQTT_BROKER
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment