Skip to content

fix/Batch Publish refs #254#270

Open
ReidP-source wants to merge 2 commits into
devfrom
bugfix/Batch-SD-Bounds
Open

fix/Batch Publish refs #254#270
ReidP-source wants to merge 2 commits into
devfrom
bugfix/Batch-SD-Bounds

Conversation

@ReidP-source
Copy link
Copy Markdown
Collaborator

Modified MQTTComponent and MongoDB classes to be more robust.

MQTTComponent::publishMessage

  • Ensures topic and message pointers are not null
  • Ensures topic and message have not exceeded the max lengths

MongoDB::publish(batch)

MongoDB::publish(batch)::publishCurrentLine

  • Added reconnection in the loop incase connection gets lost
  • Prevents overflows by dropping oversized data
  • Flags would-be overflows
  • Logs packet size before publishing
  • Treats CR/LF as EOL terminators when reconstructing batches
  • Null-terminates each line

@ReidP-source ReidP-source changed the title PR Commit refs #254 fix/Batch Publish refs #254 Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant