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

Fix arduino examples #650

Merged
merged 3 commits into from
Sep 12, 2024
Merged

Conversation

jean-roland
Copy link
Contributor

Closes #649 and brushes up the arduino examples a little.

The issue itself was due to owned_entities declared as local variables that went out of scope at the end of setup() and were overwritten in the loop() phase, causing a segault.

Copy link

PR missing one of the required labels: {'dependencies', 'internal', 'bug', 'breaking-change', 'documentation', 'new feature', 'enhancement'}

@jean-roland jean-roland added the bug Something isn't working label Sep 12, 2024
@@ -21,16 +21,12 @@
#define SSID "SSID"
#define PASS "PASS"

#define CLIENT_OR_PEER 0 // 0: Client mode; 1: Peer mode
#if CLIENT_OR_PEER == 0
Copy link
Member

Choose a reason for hiding this comment

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

What's the reason for not using the CLIENT_OR_PEER approach?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Basically the #if was ignored and compiler complained that #mode and #connect were redefined.

@milyin milyin merged commit ae36236 into eclipse-zenoh:main Sep 12, 2024
53 of 54 checks passed
@jean-roland jean-roland deleted the fix_arduino_examples branch October 8, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Arduino subscriber crashes on esp32
3 participants