Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
ecab85d
API documentation
BenjaminDannegard Nov 26, 2024
12a02c9
Api docs
BenjaminDannegard Nov 26, 2024
45de986
Added API tags
BenjaminDannegard Nov 27, 2024
c116b89
GPT fix
BenjaminDannegard Nov 27, 2024
38503fe
Update
BenjaminDannegard Nov 27, 2024
38d6751
Update
BenjaminDannegard Nov 27, 2024
96df3e6
Updated API docs
BenjaminDannegard Nov 27, 2024
17f2913
Merge branch 'arduino:main' into benjamindannegard/api-documentation
BenjaminDannegard Nov 27, 2024
003c19d
Updated API
BenjaminDannegard Nov 27, 2024
c74ed4d
Add API docs workflow
sebromero Nov 27, 2024
c8716e0
api docs update
BenjaminDannegard Nov 27, 2024
ff3171e
Added more documentation
BenjaminDannegard Dec 2, 2024
ae58089
More api documentation
BenjaminDannegard Dec 3, 2024
fb14228
Fixed wifi.h api docs
BenjaminDannegard Dec 3, 2024
6a4093e
Finished API docs
BenjaminDannegard Dec 3, 2024
c0a276e
Merge pull request #1 from BenjaminDannegard/docs
BenjaminDannegard Dec 3, 2024
70bf179
First api.h draft
BenjaminDannegard Dec 4, 2024
6b8ebbb
Fixed for formating
BenjaminDannegard Dec 9, 2024
be2e2fb
Fixed api docs file
BenjaminDannegard Dec 9, 2024
5fb1ea3
Merge pull request #2 from BenjaminDannegard/benjamindannegard/api-do…
BenjaminDannegard Dec 10, 2024
20a2010
Update documentation
actions-user Dec 10, 2024
1399224
Removed unused tags
BenjaminDannegard Dec 13, 2024
a382728
Fixed formatting
BenjaminDannegard Dec 13, 2024
af1a452
Merge branch 'main' into main
BenjaminDannegard Feb 3, 2025
a994343
Merge branch 'main' into main
BenjaminDannegard Feb 13, 2025
1ac8280
Merge branch 'arduino:main' into main
BenjaminDannegard Feb 27, 2025
375fef3
Removed workflow
BenjaminDannegard Feb 27, 2025
f2d11bf
Removed duplicate functions
BenjaminDannegard Feb 27, 2025
4a741b7
Revert "Removed duplicate functions"
BenjaminDannegard Feb 27, 2025
af03bb1
Removed duplicate functions
BenjaminDannegard Feb 27, 2025
b7a620a
Merge branch 'main' into main
BenjaminDannegard Mar 3, 2025
0ab369b
Merge branch 'main' into main
sebromero Mar 13, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added more documentation
  • Loading branch information
BenjaminDannegard committed Dec 2, 2024
commit ff3171e39b3e07e92d4c6b9d5c3024a14c7dfbce
78 changes: 64 additions & 14 deletions libraries/WiFiS3/src/WiFi.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,35 +51,85 @@ class CWifi {


public:
/**
* @brief Default constructor for the CWifi class.
*/
CWifi();

/*
* Get firmware version
/**
* @brief Get firmware version
*/
static const char* firmwareVersion();


/*
* Start WiFi connection for OPEN networks
* param ssid: Pointer to the SSID string.
/**
* @brief Start WiFi connection for OPEN networks.
*
* @param `ssid` a pointer to the SSID string.
*/
int begin(const char* ssid);



/* Start WiFi connection with passphrase
* the most secure supported mode will be automatically selected
/**
* @brief start WiFi connection with passphrase the most secure
* supported mode will be automatically selected.
*
* param ssid: Pointer to the SSID string.
* param passphrase: Passphrase. Valid characters in a passphrase
* must be between ASCII 32-126 (decimal).
* @param `ssid` Pointer to the SSID string.
* @param `passphrase` Passphrase. Valid characters in a passphrase
* must be between ASCII 32-126 (decimal).
*/
int begin(const char* ssid, const char *passphrase);

/* connect as Access Point with a standard passphrase */
/**
* @brief Starts a Wi-Fi Access Point with the specified SSID.
*
* This function initializes a Wi-Fi Access Point (AP) with the given SSID.
* It defaults to an open network (no password) and uses channel 1 for the AP.
*
* @param `ssid` The SSID (network name) of the Access Point.
*
* @return 1 if the Access Point is successfully started. 0 if the Access Point initialization failed.
*/
uint8_t beginAP(const char *ssid);
uint8_t beginAP(const char *ssid);

/**
* @brief Starts a Wi-Fi Access Point (AP) with the specified SSID and channel.
*
* This function initializes a Wi-Fi Access Point (AP) with the provided SSID
* and channel. It defaults to using no password (open network).
*
* @param `ssid` The SSID (name) of the Wi-Fi Access Point.
* @param `channel` The channel on which the Access Point will operate.
*
* @return 1 if the Access Point is successfully started. 0 if the Access Point failed to start.
*/
uint8_t beginAP(const char *ssid, uint8_t channel);

/**
* @brief Starts a Wi-Fi Access Point (AP) with the specified SSID and passphrase.
*
* This function initializes a Wi-Fi Access Point (AP) using the provided SSID
* and passphrase, defaulting to channel 1.
*
* @param `ssid` The SSID (name) of the Wi-Fi Access Point.
* @param `passphrase` The passphrase for securing the Access Point. If empty, the
* network will be open (no password).
*
* @return 1 if the Access Point is successfully started. 0 if the Access Point failed to start.
*/
uint8_t beginAP(const char *ssid, const char* passphrase);

/**
* @brief Initializes a Wi-Fi Access Point (AP) with the specified SSID, passphrase, and channel.
*
* This function configures the device as a Wi-Fi Access Point (AP) with the provided parameters.
* It sets the mode to AP and attempts to start the network.
*
* @param `ssid` The SSID (name) of the Wi-Fi Access Point.
* @param `passphrase` The passphrase for securing the Access Point. If empty, the network will be open.
* @param `channel` The Wi-Fi channel on which the Access Point will operate (1-14, depending on region).
*
* @return WL_AP_LISTENING if the Access Point is successfully started. WL_AP_FAILED if the Access Point failed to start.
*/
uint8_t beginAP(const char *ssid, const char* passphrase, uint8_t channel);


Expand Down