Skip to content
Merged
Show file tree
Hide file tree
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
Api docs
  • Loading branch information
BenjaminDannegard committed Nov 26, 2024
commit 12a02c9120c4734f2a590ef8f8ea9b6776c478d7
65 changes: 65 additions & 0 deletions libraries/WiFiS3/src/WiFiSSLClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,85 @@
class WiFiSSLClient : public WiFiClient {

public:
/**
* Initializes objects of the `WiFiSSLClient` class.
*/
WiFiSSLClient();
~WiFiSSLClient();

/**
* Establishes a secure SSL connection to a specified IP address and port.
* It takes an `IPAddress` object representing the IP address of the server
* and a `uint16_t` port number as parameters.
*/
virtual int connect(IPAddress ip, uint16_t port);

/**
* Establishes a secure SSL connection to a specified host (domain name) and port.
*/
virtual int connect(const char* host, uint16_t port);

/**
* Sets the Certificate Authority (CA) certificate for establishing secure SSL connections.
*/
void setCACert(const char* root_ca);

/**
* Sets the ECC (Elliptic Curve Cryptography) key slot and
* certificate for establishing secure SSL connections.
* `int ecc508KeySlot` specifies the ECC key slot to be used for the SSL connection.
* `const byte cert[]` is a pointer to the certificate data in the form of an array of bytes.
* `int certLength` specifies the length of the certificate data array.
*/
void setEccSlot(int ecc508KeySlot, const byte cert[], int certLength);

/**
* Allows writing a single byte of data to the SSL connection.
* The `uint8_t` parameter represents the byte of data to be written.
*/
virtual size_t write(uint8_t);

/**
* Allows writing a buffer of data to the SSL connection.
*/
virtual size_t write(const uint8_t *buf, size_t size);

/**
* Checks the number of bytes available for reading from the SSL connection.
* It returns the number of bytes available to read from the SSL connection without blocking.
*/
virtual int available();

/**
* Reads a single byte of data from the SSL connection.
*/
virtual int read();

/**
* Reads a buffer of data from the SSL connection.
*/
virtual int read(uint8_t *buf, size_t size);

/**
* Peeks at the next byte of incoming data without removing it
* from the internal buffer of the SSL connection.
*/
virtual int peek();

/**
* Flushes any pending data in the SSL connection.
* When called, this function ensures that any buffered outgoing data is
* sent over the SSL connection immediately.
*/
virtual void flush();

/**
* Closes the SSL connection.
* When called, this function will terminate the SSL connection and
* release any associated resources.
*/
virtual void stop();

virtual uint8_t connected();
virtual operator bool() {
return _sock != -1;
Expand Down
28 changes: 28 additions & 0 deletions libraries/WiFiS3/src/WiFiServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,42 @@ class WiFiServer : public Server {
WiFiClient client;

public:
/**
* Initializes a `WiFiServer` object.
*/
WiFiServer();
WiFiServer(int p);

/**
* Checks if there are any incoming client connections waiting to be accepted.
* It returns a `WiFiClient` object representing the next client connection that is available
* for processing.
*/
WiFiClient available();

/**
* Accepts and returns a new client connection that is waiting to be processed.
* When called, it will accept the next incoming client connection and
* return a `WiFiClient` object representing that connection.
*/
WiFiClient accept();

/**
* Initializes the WiFi server on a specific port.
* When this function is called with a port number as an argument,
* it sets up the server to listen for incoming client connections on that specified port.
*/
void begin(int port);

void begin();
virtual size_t write(uint8_t);
virtual size_t write(const uint8_t *buf, size_t size);

/**
* Closes the server and release any resources associated with it.
* When you call `end()`, it stops the server from listening for incoming client connections
* and cleans up any allocated memory or resources.
*/
void end();
explicit operator bool();
virtual bool operator==(const WiFiServer&);
Expand Down