I am trying to send a message to dynamically created topic to mqtt.Topic is fetched from received message and known topic.
but when i send message i am getting error 128
Code: Select all
if(strstr(dataf, "check")){
char *token=strtok(dataf,"check_");
char topic[50]="vst/vend/vst002/";
strcat(topic,token);
msg_id = esp_mqtt_client_publish(client,sub_topic, "Tr", 0, 1, 0);
}
Regards,
Richu