SmartArduino / WiFiMCU

WiFiCMU-v0.9.8-pre release
https://github.com/SmartArduino/WiFiMCU
123 stars 65 forks source link

Mqtt client publish message's content is the topic name. #15

Closed wuming123057 closed 8 years ago

wuming123057 commented 8 years ago

Mqtt client publish message, message content is the topic name.like this:

message recevied from /a/a: qos=0 
/a/a
message recevied from /a/a: qos=0     
/a/a
message recevied from /a/a: qos=0    
/a/a
message recevied from /a/a: qos=0   
/a/a
message recevied from /a/a: qos=0   
/a/a

I use this lua function mqtt.publish(mqttClt,topic,mqtt.QOS0, 'hiwifimcu').

And mqtt subscribe at present it is normal

Can you provide details of mqtt API?

wuming123057 commented 8 years ago

this issues is same to Payload passed to the publish method of MQTT did not send properly issues#9