560 views|0 replies

10

Posts

1

Resources
The OP
 

[Digi-Key Follow me Issue 2] + Network function usage based on CircuitPython [Copy link]

 

Task 2: Network Function Usage

Rendering

Note: The IP address shown at the top of the above picture is the IP address assigned to the WIFI. The two lines printed at the bottom are the created hotspot, WIFI name and WIFI password, which can be searched by the mobile phone.

Main code snippets and descriptions corresponding to task functions

The first step is to create a hotspot, which is also very simple. Import the wifi library

Then call the start_ap function and fill in your hotspot name and password.

You can also print the created name, password and IP add to the screen. Here I only display the name and password. The following is the full code

import os
import time
import ssl
import wifi
import socketpool
import microcontroller
import adafruit_requests

wifi.radio.start_ap("adafruit_wifi", "12345678")
print(f"NtworkName: adafruit_wifi")
print(f"Password: 12345678")

while True:
  pass

Connect to WIFI and configure the following file

This is the source code

任务2_创建WIFI_连接WIFI.rar (94.63 KB, downloads: 2)
This post is from DigiKey Technology Zone
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list