Skip to content

Monitor: show timestamp when receiving messages #2316

Closed
@alessio-perugini

Description

@alessio-perugini

Describe the request

When opening the serial monitor with arduino-cli monitor -p /dev/ttyACM0 would be cool to prefix the timestamp of a message received from the serial.
We can add a new flag like --show-timestamp that enables such a feature.

Expected output:

[2023-09-13 16:55:22] Message from serial
[2023-09-13 16:55:25] another message
[2023-09-13 16:55:30] a
[2023-09-13 16:55:35] bcd

Describe the current behavior

When we receive a message from the serial monitor we just show them without prefixing the timestamp.

Arduino CLI version

Operating system

Linux

Operating system version

Ubuntu 23.04

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

Labels

topic: codeRelated to content of the project itselftype: enhancementProposed improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions