Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- def reset():
- import machine
- machine.reset()
- def get_ip():
- start_time = time.time()
- while not sta_if.isconnected():
- time.sleep(0.1)
- now = time.time()
- if now - start_time > 10:
- break
- print(sta_if.ifconfig())
- def main():
- get_ip()
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement