Networking: added function and cleaned up #14

Merged Jookia merged 2 commits into LuminaSensum:main from LuminaSensum:networking on 1 Apr 2023
@xogium xogium commented on 31 Mar 2023

This PR adds a new function network_is_connected which can be used to verify the status of the connection before executing something which needs network access. It changes the boolean is_connected for an atomic one, in order to be thread safe.

It also removes a redundant include of EthernetInterface, and replaces it with an include of the NetworkHandler header.

Looks great!

@Jookia Jookia referenced the pull request on 1 Apr 2023

Networking: added function and cleaned up

@Jookia Jookia merged commit 3911e6e into main from networking on 1 Apr 2023
@Jookia Jookia closed this pull request on 1 Apr 2023
Labels

Priority
default
Milestone
No milestone
Assignee
No one assigned
2 participants
@xogium @Jookia