Skip to content

Commit 7dfc577

Browse files
committed
added ap on boot information
1 parent 4c24541 commit 7dfc577

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

content/firmwareapi/pycom/pycom.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,18 @@ Allows you permanently disable or enable the heartbeat LED. Once this setting is
8989
### pycom.lte_modem_on_boot([boolean])
9090

9191
Get or set the LTE modem on boot flag. When this flag is set to `True`, the LTE modem will be enabled.
92+
9293
### pycom.wifi_on_boot([boolean])
9394

94-
Get or set the WiFi on boot flag. When this flag is set to `True`, The WiFi will be enabled according to the other WiFi settings. when `False` the WiFi module will be disabled untill enabled directly via WLAN class.
95+
Get or set the WiFi on boot flag. When this flag is set to `True`, The WiFi will be enabled according to the other WiFi settings. when `False` the WiFi module will be disabled until enabled directly via WLAN class. This setting is stored in the non-volatile memory which preserves it across resets and power cycles. See [FTP & Telnet](/gettingstarted/programming/ftp/) for more information on possible usage.
96+
97+
### pycom.wifi_mode_on_boot(mode)
9598

96-
This setting is stored in non-volatile memory which preserves it across resets and power cycles.
99+
Set or get the Wifi Mode at startup, valid options are:
100+
* `WLAN.STA`
101+
* `WLAN.AP`
102+
* `WLAN.APSTA`
103+
This setting is stored in non-volatile memory which preserves it across resets and power cycles
97104

98105
### pycom.wifi_ssid_sta([ssid])
99106

@@ -102,7 +109,7 @@ This setting is stored in non-volatile memory which preserves it across resets a
102109

103110
### pycom.wifi_ssid_ap([ssid])
104111

105-
Get or set the ssid of the Access point that should be started by the device at startup, if not set and startup Wifi mode is AP the default AP name (`Board_Name>-wlan-<last_4_digits_mac`) will be used.This setting is stored in non-volatile memory which preserves it across resets and power cycles
112+
Get or set the ssid of the Access point that should be started by the device at startup, if not set and startup Wifi mode is AP the default AP name (`xxpy-wlan-####`) will be used. This setting is stored in non-volatile memory which preserves it across resets and power cycles.
106113

107114
### pycom.wifi_pwd_sta([key])
108115

@@ -120,10 +127,6 @@ Read or (Enable/Disable) SmartConfig functionality on startup, this flag will be
120127

121128
Read or (Enable/Disable) SmartConfig functionality on startup, this flag will be reset after successful completion of the smartConfig process after startup.This setting is stored in non-volatile memory which preserves it across resets and power cycles
122129

123-
### pycom.wifi_mode_on_boot([boolean])
124-
125-
Set or get the Wifi Mode at startup , `WLAN.STA`, `WLAN.AP` or `WLAN.APSTA`.This setting is stored in non-volatile memory which preserves it across resets and power cycles
126-
127130
### pycom.wdt_on_boot_timeout([timeout])
128131

129132
Sets or gets the WDT on boot timeout in milliseconds. The minimum value is 5000 ms.

content/gettingstarted/programming/ftp.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ aliases:
66
- chapter/gettingstarted/programming/ftp
77
---
88

9+
> This method of connection is not recommended for first time users. It is possible to lock yourself out of the device, requiring a USB connection.
10+
911
There is a small internal file system accessible with each Pycom device, called `/flash`. This is stored within the external serial flash memory. If a microSD card is also connected and mounted, it will be available as well. When the device starts up, it will always boot from the `boot.py` located in the `/flash` file system.
1012

1113
The first time(s), your device will create an Access Point (AP) you can connect to using your computer's WiFi.
@@ -14,7 +16,22 @@ By default, the device will create a WiFi access point with the following creden
1416
* SSID: `xxpy-wlan-####`
1517
* Password: `www.pycom.io`
1618

17-
>Note: This method of connection is not recommended for first time users. It is possible to lock yourself out of the device, requiring a USB connection.
19+
> If the WiFi network does not show up by default, use the following:
20+
>```python
21+
> import pycom
22+
> from network import WLAN
23+
> pycom.wifi_on_boot(True)
24+
> pycom.wifi_mode_on_boot(WLAN.AP)
25+
> ```
26+
> The last 4 characters of the broadcast SSID are equal to the last 4 characters of the `unique_id()`: (Except if the AP SSID was set previously)
27+
> ```python
28+
> import machine
29+
> import ubinascii
30+
> ubinascii.hexlify(machine.unique_id())
31+
> ```
32+
33+
34+
1835
1936
Once connected to this network you will be able to access the telnet and FTP servers running on the LoPy4.
2037

0 commit comments

Comments
 (0)