mqtt publish error | transport_read() error: errno=128 esp32
Posted: Sun Aug 09, 2020 10:57 am
Hi all,
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
please help me to sort out this issue.
Regards,
Richu
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