Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

New LogRecord protobuf BLE logging#627

Merged
ianmcorvidae merged 7 commits intomastermeshtastic/python:masterfrom
protobuf-ble-loggingmeshtastic/python:protobuf-ble-loggingCopy head branch name to clipboard
Jul 2, 2024
Merged

New LogRecord protobuf BLE logging#627
ianmcorvidae merged 7 commits intomastermeshtastic/python:masterfrom
protobuf-ble-loggingmeshtastic/python:protobuf-ble-loggingCopy head branch name to clipboard

Conversation

@thebentern
Copy link
Contributor

Kissing cousins ticket for meshtastic/firmware#4220

log_record = mesh_pb2.LogRecord()
try:
log_record.ParseFromString(bytes(b))
log_record.message = log_record.message.replace("\n", "")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about instead of this we not include the new line on the sending side? Looks great otherwise.

@ianmcorvidae
Copy link
Contributor

I think that eventually here we should do something like #607 is doing in that we should publish a pubsub message for log lines. That PR (WIP, of course) only passes along the log line and not the whole LogRecord, though.

I also have a question, which is whether any actual firmware releases went out with the now-legacy logging characteristic. We could possibly exclude it if there weren't any, but I haven't been watching that closely.

Other than my question and the suggestion from geeksville about removing newlines on the send side, I think this is good for now, and we can augment it with the pubsub once we've got something on both the BLE and the streaming interface sides.

@thebentern
Copy link
Contributor Author

Sounds good. I'm moving the newline handling to the device

@geeksville
Copy link
Member

geeksville commented Jul 2, 2024 via email

@ianmcorvidae ianmcorvidae merged commit 22bf34e into master Jul 2, 2024
@ianmcorvidae ianmcorvidae deleted the protobuf-ble-logging branch July 2, 2024 16:44
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.