Skip to content

Commit 06d88ea

Browse files
gijsiopeter-pycom
authored andcommitted
removed the duplicate init() line
1 parent 9cd0a63 commit 06d88ea

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

content/tutorials/networks/lte/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import time
2525
import socket
2626

2727
lte = LTE()
28-
lte.init()
2928
#some carriers have special requirements, check print(lte.send_at_cmd("AT+SQNCTM=?")) to see if your carrier is listed.
3029
#when using verizon, use
3130
#lte.init(carrier=verizon)

content/tutorials/networks/wlan.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ Using the WLAN class from network, you can change the name (SSID) and security s
2727

2828
```python
2929
from network import WLAN
30-
wlan = WLAN(mode=WLAN.AP, ssid='hello world')
30+
wlan = WLAN()
3131

32-
wlan.init()
32+
wlan.init(mode=WLAN.AP, ssid='hello world')
3333
#use the line below to apply a password
3434
#wlan.init(ssid="hi", auth=(WLAN.WPA2, "eightletters"))
3535
print(wlan.ifconfig(id=1)) #id =1 signifies the AP interface

0 commit comments

Comments
 (0)