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

Wifi #65

Open
wants to merge 39 commits into
base: develop
Choose a base branch
from
Open

Wifi #65

wants to merge 39 commits into from

Conversation

jaenrig-ifx
Copy link
Member

By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---

CONTRIBUTING.md also tells you what to expect in the PR process.

Aggregated PR with all the currently implemented WiFi functionality.

The WIFI connection manager library and the hardware
transceiver supports both Access Point and station
at the same time.
Nevertheless, as the WiFi class is often presented as a
singleton class, and offers no API or mechanism to
instantiate station or AP specifically for their
applicable functions.
Therefore, the decided implementation will only
consider one active interface as a time.

Signed-off-by: jaenrig-ifx <[email protected]>
return; \
}

#define socket_assert_raise(cy_ret) if (cy_ret != CY_RSLT_SUCCESS) { \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need both these functions? Can we not use socket_assert(ret)?


/**
* TODOs:
* - Adapt the enum list conveniently. Do we need to keep all?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we still need this TODO?

author=Infineon Technologies
maintainer=Infineon Technologies <[email protected]>
sentence=Enables WIFI connectivity for PSOC core boards
paragraph=With this library you can instantiate Servers, Clients and send/receive UDP packets through WiFi. The board can connect either to open or encrypted networks (WEP, WPA). The IP address can be assigned statically or through a DHCP. The library can also manage DNS.
Copy link
Collaborator

Choose a reason for hiding this comment

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

You mentioned somewhere below WEP is not supported... Should we adapt the description here?

ap_conf.ap_credentials.security = CY_WCM_SECURITY_OPEN;
}

/* The AP requires a default some default IP settings */
Copy link
Collaborator

Choose a reason for hiding this comment

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

fix the comment here


/**
* Return Connection status
* TODO: Clean up unused or irrelevant status codes for this core.
Copy link
Collaborator

Choose a reason for hiding this comment

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

also this one.. Still needed?

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