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

Enable DeviceTelemetry on Portduino #2272

Merged
merged 8 commits into from
Feb 11, 2023

Conversation

GUVWAF
Copy link
Member

@GUVWAF GUVWAF commented Feb 11, 2023

I added a HAS_SENSOR flag to separate DeviceTelemetry from EnvironmentTelemetry such that we can enable it on Portduino.

Furthermore, I had to put SimRadio in a separate thread such that I can use notifyLater when transmitting, to fix issues with the packetPool when it was using ccToPhone for DeviceTelemetry.

I also guarded the simulator stuff with HAS_RADIO such that we can distinguish between a Portduino target with radio and the simulator.

Then I found syslog causes Portduino to crash because it doesn't compile mesh/http, so I disabled that with an extra !defined(ARCH_PORTDUINO).

To separate DeviceTelemetry and EnvironmentTelemetry
To use notifyLater when transmitting, fixes packetPool issues
Breaks when running since mesh/http is not compiled
@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2023

🤖 Pull request artifacts

file commit
pr2272-firmware-2.0.21.0f47584.zip 0f47584

thebentern added a commit to meshtastic/artifacts that referenced this pull request Feb 11, 2023
@caveman99
Copy link
Member

Good stuff, the syslog problem may be related to the PIC PIE error message. Since portduino has IP by default, it would be a shame to have to exclude that. Let's keep in mind we have tofix that underlying problem eventually.

thebentern added a commit to meshtastic/artifacts that referenced this pull request Feb 11, 2023
@GUVWAF GUVWAF merged commit 40d98b9 into meshtastic:master Feb 11, 2023
@GUVWAF GUVWAF deleted the portduinoDeviceTelemetry branch March 5, 2023 15:11
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