Skip to content

Commit 65e6a02

Browse files
committed
Update api.md
1 parent 250301f commit 65e6a02

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/api.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ nothing
247247

248248
### `WiFi.beginAP()`
249249
#### Description
250-
Initializes the WiFi101 library in Access Point (AP) mode. Other WiFi devices will be able to disover and connect to the created Access Point.
250+
Initializes the WiFi101 library in Access Point (AP) mode. Other WiFi devices will be able to discover and connect to the created Access Point.
251251

252252
#### Syntax
253253
```
@@ -555,6 +555,7 @@ WiFi.setDNS(dns_server1, dns_server2)
555555
```
556556
#### Parameters
557557
dns_server1: the IP address of the primary DNS server
558+
558559
dns_server2: the IP address of the secondary DNS server
559560

560561
#### Returns
@@ -2035,7 +2036,7 @@ void loop() {
20352036

20362037
### `ConnectSSL()`
20372038
#### Description
2038-
Connect to the IP address and port specified in the constructor using the SSL protocol. The method connectSSL is required when the server provides only HTTPS connections. Before using this metod, it is required to load the SSL certificate used by the server into the Arduino WiFi Shield 101. The shield comes already loaded with certificates and it should be ready to use. To change or upload new SSL certificates you should follow the procedures that will be made available. connectSSL() also supports DNS lookups when using a domain name (ex:google.com).
2039+
Connect to the IP address and port specified in the constructor using the SSL protocol. The method connectSSL is required when the server provides only HTTPS connections. Before using this method, it is required to load the SSL certificate used by the server into the Arduino WiFi Shield 101. The shield comes already loaded with certificates and it should be ready to use. To change or upload new SSL certificates you should follow the procedures that will be made available. connectSSL() also supports DNS lookups when using a domain name (ex:google.com).
20392040

20402041
#### Syntax
20412042
```
@@ -2374,6 +2375,7 @@ WiFiUDP.beginPacket(hostIp, port);
23742375
```
23752376
#### Parameters
23762377
hostName: the address of the remote host. It accepts a character string or an IPAddress
2378+
23772379
hostIp: the IP address of the remote connection (4 bytes)
23782380
port: the port of the remote connection (int)
23792381
#### Returns
@@ -2408,7 +2410,9 @@ WiFiUDP.write(buffer, size);
24082410
```
24092411
#### Parameters
24102412
byte: the outgoing byte
2413+
24112414
buffer: the outgoing message
2415+
24122416
size: the size of the buffer
24132417
#### Returns
24142418
single byte into the packet
@@ -2460,6 +2464,7 @@ WiFiUDP.read(buffer, len);
24602464
```
24612465
#### Parameters
24622466
buffer: buffer to hold incoming packets (char*)
2467+
24632468
len: maximum size of the buffer (int)
24642469

24652470
#### Returns

0 commit comments

Comments
 (0)