You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/firmwareapi/pycom/pycom.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,11 +89,18 @@ Allows you permanently disable or enable the heartbeat LED. Once this setting is
89
89
### pycom.lte_modem_on_boot([boolean])
90
90
91
91
Get or set the LTE modem on boot flag. When this flag is set to `True`, the LTE modem will be enabled.
92
+
92
93
### pycom.wifi_on_boot([boolean])
93
94
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)
95
98
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
97
104
98
105
### pycom.wifi_ssid_sta([ssid])
99
106
@@ -102,7 +109,7 @@ This setting is stored in non-volatile memory which preserves it across resets a
102
109
103
110
### pycom.wifi_ssid_ap([ssid])
104
111
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.
106
113
107
114
### pycom.wifi_pwd_sta([key])
108
115
@@ -120,10 +127,6 @@ Read or (Enable/Disable) SmartConfig functionality on startup, this flag will be
120
127
121
128
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
122
129
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
-
127
130
### pycom.wdt_on_boot_timeout([timeout])
128
131
129
132
Sets or gets the WDT on boot timeout in milliseconds. The minimum value is 5000 ms.
Copy file name to clipboardExpand all lines: content/gettingstarted/programming/ftp.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ aliases:
6
6
- chapter/gettingstarted/programming/ftp
7
7
---
8
8
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
+
9
11
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.
10
12
11
13
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
14
16
* SSID: `xxpy-wlan-####`
15
17
* Password: `www.pycom.io`
16
18
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 importWLAN
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 APSSID was set previously)
27
+
>```python
28
+
>import machine
29
+
>import ubinascii
30
+
> ubinascii.hexlify(machine.unique_id())
31
+
>```
32
+
33
+
34
+
18
35
19
36
Once connected to this network you will be able to access the telnet andFTP servers running on the LoPy4.
0 commit comments