Juerd / Net-MQTT-Simple

Net::MQTT::Simple - Minimal MQTT version 3 publisher
10 stars 8 forks source link

Chunk _send data into $READ_BYTES bytes. #19

Closed CRCinAU closed 2 years ago

CRCinAU commented 2 years ago

When sending messages longer than 16Kb, we end up truncating the message, which ends up causing a protocol error and having the client disconnected.

This change chunks the sending data into $READ_BYTES chunks.

Fixes #18

CRCinAU commented 2 years ago

Bah - doing this via the web interface caused a problem...... Let me review it properly and submit a new PR.