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

feat(common_examples): Add common examples aplicable for all phys #29

Merged

Conversation

bogdankolendovskyy
Copy link
Collaborator

Add common examples which are implemented for all phys (simple_ethernet initialization example, iperf, and tcp_client, tcp_server)

simple_ethernet

simple_ethernet demonstrates initialization using ethernet_init component. Moved from ethernet_init/examples to common_examples/ to keep all universal examples in the same directory.

iperf

iperf 3 example with support of dhcp server, allowing not only "ESP32 to PC" connection, but "ESP32 to ESP32" connection as well.

tcp_client and tcp_server

TCP socket client which is able to send periodic transmissions and server responding to it. Both are bundled with python scripts to be ran on PC side.

@bogdankolendovskyy bogdankolendovskyy force-pushed the universal-examples-master branch from 56ee482 to 741cd12 Compare April 15, 2024 10:29
@bogdankolendovskyy bogdankolendovskyy self-assigned this Apr 15, 2024
@bogdankolendovskyy bogdankolendovskyy force-pushed the universal-examples-master branch 4 times, most recently from b8d4389 to 65b4dc4 Compare April 15, 2024 13:42
@kostaond
Copy link
Collaborator

@bogdankolendovskyy general comment, I'm missing README's for examples.

@bogdankolendovskyy bogdankolendovskyy force-pushed the universal-examples-master branch from 65b4dc4 to d299f03 Compare April 19, 2024 10:15
@bogdankolendovskyy bogdankolendovskyy force-pushed the universal-examples-master branch 2 times, most recently from f0887aa to 6eb59f8 Compare April 19, 2024 11:44
common_examples/iperf/main/idf_component.yml Outdated Show resolved Hide resolved
common_examples/iperf/main/iperf.c Outdated Show resolved Hide resolved
common_examples/iperf/main/iperf.c Outdated Show resolved Hide resolved
common_examples/tcp_client/main/tcp_client.c Outdated Show resolved Hide resolved
common_examples/tcp_server/main/tcp_server.c Show resolved Hide resolved
common_examples/iperf/main/iperf.c Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
common_examples/iperf/README.md Outdated Show resolved Hide resolved
common_examples/tcp_client/README.md Outdated Show resolved Hide resolved
common_examples/tcp_client/README.md Outdated Show resolved Hide resolved
common_examples/tcp_client/README.md Outdated Show resolved Hide resolved
common_examples/tcp_client/main/tcp_client.c Outdated Show resolved Hide resolved
@bogdankolendovskyy bogdankolendovskyy force-pushed the universal-examples-master branch 4 times, most recently from c9a4619 to 738fdbb Compare April 24, 2024 13:11
@bogdankolendovskyy bogdankolendovskyy force-pushed the universal-examples-master branch 2 times, most recently from 1ea002e to 6aaff3e Compare May 2, 2024 12:59
.gitignore Show resolved Hide resolved
@bogdankolendovskyy bogdankolendovskyy force-pushed the universal-examples-master branch from 6aaff3e to 1a9b41e Compare May 3, 2024 13:28
@bogdankolendovskyy
Copy link
Collaborator Author

Note to self: update iperf to support multiple subnets after finalizing the code in tcp_server.

@bogdankolendovskyy bogdankolendovskyy force-pushed the universal-examples-master branch 4 times, most recently from ca7e7ed to 6badbe0 Compare May 14, 2024 12:03
@bogdankolendovskyy bogdankolendovskyy force-pushed the universal-examples-master branch from 6badbe0 to 1babe1b Compare May 22, 2024 09:44
Copy link
Collaborator

@david-cermak david-cermak left a comment

Choose a reason for hiding this comment

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

Good work @bogdankolendovskyy
just left few formal comments and suggestions.

One general nitpick would be to:

  • correct newlines at the end of all files
  • add copyright messages to headers and sources

@bogdankolendovskyy bogdankolendovskyy force-pushed the universal-examples-master branch 2 times, most recently from 9aa9eed to 538712e Compare May 23, 2024 10:48
Copy link
Collaborator

@david-cermak david-cermak left a comment

Choose a reason for hiding this comment

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

LGTM!

@bogdankolendovskyy bogdankolendovskyy force-pushed the universal-examples-master branch from 538712e to c09c4d9 Compare June 7, 2024 10:13
@kostaond kostaond merged commit aa2f96e into espressif:master Jun 7, 2024
9 checks passed
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.

4 participants