hirotakaster / MQTT

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

MQTT_MAX_PACKET_SIZE too small #34

Closed jrburk closed 7 years ago

jrburk commented 7 years ago

MQTT_MAX_PACKET_SIZE is too small for my application. Would it be a big deal to make it configurable with the constructor or a setter?

The constant is used four times in MQTT.cpp. Could be replaced with sizeof(buffer) ?

hirotakaster commented 7 years ago

Hi, now I update configure the max_packet_size at constructor. 18b66728b969e13a63751c26ee417ee2d37216b1 commit no.

jrburk commented 7 years ago

Thank you!

hirotakaster commented 7 years ago

may be you can use on Particle IDE(version 0.3.8) soon. can I close this issue?

jrburk commented 7 years ago

yes