hirotakaster / MQTT

MQTT for Photon, Spark Core
Other
216 stars 118 forks source link

initializing argument 2 of 'bool MQTT::publish(const char*, const char*, MQTT::EMQTT_QOS, uint16_t*)' [-fpermissive] #41

Closed mhelgren closed 7 years ago

mhelgren commented 7 years ago

Veryfing code using this library in Particle Build fails with this error:


MQTT/MQTT.h:163:10: error:   initializing argument 2 of 'bool MQTT::publish(const char*, const char*, MQTT::EMQTT_QOS, uint16_t*)' [-fpermissive]
     bool publish(const char *, const char *, EMQTT_QOS, uint16_t *messageid = NULL)
hirotakaster commented 7 years ago

@mhelgren , I can compile on Photon, Core WebIDE and I did not version up. code is like this,

client.publish("outTopic/message", "hello world QOS1", MQTT::QOS1, &messageid);

check your code or sample .ino.

hirotakaster commented 7 years ago

@mhelgren hi, close this issue?

mhelgren commented 7 years ago

Yes you can close it. Thanks.