Ouss4 commented on a change in pull request #4419:
URL: https://github.com/apache/incubator-nuttx/pull/4419#discussion_r696560958



##########
File path: Documentation/platforms/xtensa/esp32/index.rst
##########
@@ -291,17 +291,35 @@ WiFi
 
 A standard network interface will be configured and can be initialized such 
as::
 
-    ifup wlan0
-    wapi psk wlan0 mypasswd 3
-    wapi essid wlan0 myssid 1
-    renew wlan0
+    nsh> ifup wlan0
+    nsh> wapi psk wlan0 mypasswd 3
+    nsh> wapi essid wlan0 myssid 1
+    nsh> renew wlan0
 
 In this case a connection to AP with SSID ``myssid`` is done, using 
``mypasswd`` as
 password. IP address is obtained via DHCP using ``renew`` command. You can 
check
 the result by running ``ifconfig`` afterwards.
 
 .. tip:: Boards usually expose a ``wapi`` defconfig which enables WiFi
 
+WiFi SoftAP
+===========
+
+It is possible to use ESP32 as an Access Point (SoftAP). Actually there are 
some
+boards with a ``sta_softap`` which enables this support.
+
+If you are using this board config profile you can run these commands to be 
able
+to connet your smartphone or laptop to your board::
+
+    nsh> ifup wlan1
+    nsh> dhcpd_start wlan1
+    nsh> wapi psk wlan0 mypasswd 1
+    nsh> wapi essid wlan1 nuttxap 1
+
+In this case, you are creating the access point ``nuttxapp`` in your board and 
to
+connect to it on your smartphone you will required to type the password 
``mypasswd``.

Review comment:
       ```suggestion
   connect to it on your smartphone you will be required to type the password 
``mypasswd``.
   ```

##########
File path: Documentation/platforms/xtensa/esp32/index.rst
##########
@@ -291,17 +291,35 @@ WiFi
 
 A standard network interface will be configured and can be initialized such 
as::
 
-    ifup wlan0
-    wapi psk wlan0 mypasswd 3
-    wapi essid wlan0 myssid 1
-    renew wlan0
+    nsh> ifup wlan0
+    nsh> wapi psk wlan0 mypasswd 3
+    nsh> wapi essid wlan0 myssid 1
+    nsh> renew wlan0
 
 In this case a connection to AP with SSID ``myssid`` is done, using 
``mypasswd`` as
 password. IP address is obtained via DHCP using ``renew`` command. You can 
check
 the result by running ``ifconfig`` afterwards.
 
 .. tip:: Boards usually expose a ``wapi`` defconfig which enables WiFi
 
+WiFi SoftAP
+===========
+
+It is possible to use ESP32 as an Access Point (SoftAP). Actually there are 
some
+boards with a ``sta_softap`` which enables this support.
+
+If you are using this board config profile you can run these commands to be 
able
+to connet your smartphone or laptop to your board::

Review comment:
       ```suggestion
   to connect your smartphone or laptop to your board::
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to