mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-07-29 18:28:24 +02:00
add const char * to esp_mqtt_client_subscribe() generic macros
This commit is contained in:
@ -463,6 +463,7 @@ esp_err_t esp_mqtt_client_stop(esp_mqtt_client_handle_t client);
|
|||||||
*/
|
*/
|
||||||
#define esp_mqtt_client_subscribe(client_handle, topic_type, qos_or_size) _Generic((topic_type), \
|
#define esp_mqtt_client_subscribe(client_handle, topic_type, qos_or_size) _Generic((topic_type), \
|
||||||
char *: esp_mqtt_client_subscribe_single, \
|
char *: esp_mqtt_client_subscribe_single, \
|
||||||
|
const char *: esp_mqtt_client_subscribe_single, \
|
||||||
esp_mqtt_topic_t*: esp_mqtt_client_subscribe_multiple \
|
esp_mqtt_topic_t*: esp_mqtt_client_subscribe_multiple \
|
||||||
)(client_handle, topic_type, qos_or_size)
|
)(client_handle, topic_type, qos_or_size)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user