network - loboris/MicroPython_K210_LoBo GitHub Wiki
Network module
network module contains several classes and methods which enables assessing the network.
Available classes
- wifiaccess the the network using ESP8266/ESP8285 module attached to K210 via UART
- gsmaccess the the network using GSM module module attached to K210 via UART
- requestsaccess http/https resources on network
- mqttcommunicate over network using Mqtt protocol
Each of above classes has its own Wiki page describing in detailes how to use it
Methods
network.wifi_active()
Returns True
or False
depending on whether the WiFi is initialized and ready for use
network.gsm_active()
Returns True
or False
depending on whether the GSM module is initialized and ready for use
network.gsm_connected()
Returns True
or False
depending on whether the GSM module is connected to the Internet