Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logs: Add support for reading number of entries since an index for a particular log #204

Closed
wants to merge 1 commit into from

Conversation

vrahane
Copy link
Contributor

@vrahane vrahane commented Mar 21, 2024

Related mcumgr PR: apache/mynewt-mcumgr#172
Related mynewt-core PR: apache/mynewt-core#3168

Example:
Successful/Valid case:

$newtmgr --connstring peer_name="my_dev" --conntype oic_ble log num_entries reboot_log 0
Number of entries: 43

Error case:

<Invalid log>
$newtmgr --connstring peer_name="my_dev" --conntype oic_ble log num_entries reboot 0
error: 5

<Invalid index>
$newtmgr --connstring peer_name="my_dev" --conntype oic_ble log num_entries reboot 4000
error: 5

@vrahane vrahane force-pushed the vipul/log_num_entries_support branch from 542fb93 to f8577c6 Compare March 21, 2024 04:51
@vrahane vrahane closed this Mar 21, 2024
@vrahane vrahane deleted the vipul/log_num_entries_support branch March 21, 2024 04:53
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