Toggle Navigation
Hatchery
Eggs
WebToText
__init__.py
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
__init__.py
raw
Content
import urequests import network import ubinascii import uinterface import machine nickname = machine.nvs_getstr('badge', 'nickname') uinterface.connect_wifi() mac = ubinascii.hexlify(network.WLAN().config('mac'), ':').decode() result = urequests.get('http://204.2.71.137/register.php?nickname=' + nickname + '&mac=' + mac)