Skip to content

Commit

Permalink
Update mqtt_client.h
Browse files Browse the repository at this point in the history
Change "char *" to "const char *"  in mqtt_subscribe generic macros
  • Loading branch information
valesnikov authored Jan 21, 2024
1 parent 7894dd0 commit e5e4c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mqtt_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ esp_err_t esp_mqtt_client_stop(esp_mqtt_client_handle_t client);
* -2 in case of full outbox.
*/
#define esp_mqtt_client_subscribe(client_handle, topic_type, qos_or_size) _Generic((topic_type), \
char *: esp_mqtt_client_subscribe_single, \
const char *: esp_mqtt_client_subscribe_single, \
esp_mqtt_topic_t*: esp_mqtt_client_subscribe_multiple \
)(client_handle, topic_type, qos_or_size)

Expand Down

0 comments on commit e5e4c67

Please sign in to comment.