to speed up WiFi connection router should receive from ESP:
static IP, bssid, channel number
1) How to get from successful WiFi connection following data?
- channel number
- bssid
2) How to connect WiFi with certain channel number?
connect() has no such parameter
How to connect WiFi with certain channel?
Re: How to connect WiFi with certain channel?
I don't believe this is possible on the ESP8266 -- the config structure that MicroPython passes to the underlying WiFi APIs has no way to specify the channel.
Edit: Actually this is possible. You could implement this quite easily in ports/esp8266/modnetwork.c:
Code: Select all
STATIC mp_obj_t esp_connect(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
Re: How to connect WiFi with certain channel?
See https://github.com/esp8266/Arduino/blob ... A.cpp#L127 for a reference of how to use these APIs.