Skip to content

Added MCU temp sensor to the companion#2897

Open
yarda wants to merge 2 commits into
meshcore-dev:mainfrom
yarda:companion-add-mcu-temp-sensor
Open

Added MCU temp sensor to the companion#2897
yarda wants to merge 2 commits into
meshcore-dev:mainfrom
yarda:companion-add-mcu-temp-sensor

Conversation

@yarda

@yarda yarda commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #2896

@IoTThinks

Copy link
Copy Markdown
Contributor

Yeah, great.
Thanks a lot.

dotspencer added a commit to dotspencer/MeshCore that referenced this pull request Jul 6, 2026
…dev#2897)

Apply yarda's changes from meshcore-dev#2897: report MCU
temperature in self telemetry and contact telemetry responses, and fix
NRF52Board::getMCUTemperature() to use sd_temp_get() when the SoftDevice
is enabled (direct NRF_TEMP register access is SoftDevice-restricted).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CoUHCA3fM6g3uKdZYTpEzt
@pemensik

Copy link
Copy Markdown

Ah, nice! I would recommend moving different way to obtain the temperature to different (static) functions for increased readability, because they differ significantly. But yes, if my companion is able to measure the temperature without extra sensor, I want to have it readable.

@yarda

yarda commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Ah, nice! I would recommend moving different way to obtain the temperature to different (static) functions for increased readability, because they differ significantly. But yes, if my companion is able to measure the temperature without extra sensor, I want to have it readable.

It is consistent with the existing coding style, i.e. there is usually check for the softdev and two code paths in the function.

@liamcottle

Copy link
Copy Markdown
Member

Hello! Thanks for the PR.

You are trying to merge changes into main.
Can you please change the base branch to dev.

Also, you may need to rebase your changes on your local branch against dev, and force push, and not just change it in the dropdown on the GitHub PR UI.

Otherwise it will pull in a bunch of commits from main, which we don't want.

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.

MCU temperature telemetry for companion

4 participants