Search found 43 matches

by VladVons
Sun Mar 15, 2020 12:54 pm
Forum: ESP8266 boards
Topic: How to connect WiFi with certain channel?
Replies: 2
Views: 411

How to connect WiFi with certain channel?

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
by VladVons
Sat Mar 14, 2020 7:31 am
Forum: ESP8266 boards
Topic: Speed up boot time after "deep sleep" and reduce WiFi activity
Replies: 5
Views: 1154

Re: Speed up boot time after "deep sleep" and reduce WiFi activity

loading micropython kernel and init own classes 1.7 seconds WiFi Connection With no parameters (previous ESP ROM data): 3.5 seconds for connect With static IP address + 'bssid' parameter: 2.5 seconds for connect In post above from 'tve' pointed about 0.175 sec with ssid, passwd, channel, bssid, ip,...
by VladVons
Fri Mar 13, 2020 9:36 pm
Forum: ESP8266 boards
Topic: Speed up boot time after "deep sleep" and reduce WiFi activity
Replies: 5
Views: 1154

Speed up boot time after "deep sleep" and reduce WiFi activity

I try to use ESP8266 with independent aku power supply, so mimimizing power consumption is important. DeepSleep uses 0,2 mA Wake up and WiFi activity uses 70-150 mA for a 3-6 seconds to connect to a router. Is it possible to reduce WiFi negotiation time? I think assign static IP address would be a s...
by VladVons
Thu Mar 12, 2020 10:45 am
Forum: General Discussion and Questions
Topic: Class destructor doesnt work in micropython?
Replies: 11
Views: 1062

Re: Class destructor doesnt work in micropython?

In python for linux/windows __del__ happens immediately after exiting from a method scope or application's exit.
You can use it or not in your class definition for own risk as you use __init__ constructor.
So, freedom and flexibility is important
by VladVons
Thu Mar 12, 2020 8:15 am
Forum: General Discussion and Questions
Topic: Class destructor doesnt work in micropython?
Replies: 11
Views: 1062

Re: Class destructor doesnt work in micropython?

as i understand you use your own user defined method 'def deinit(self)'.

every developer can use own method to release object when there are a choices.
destructor is most native inmodern languages.
i asked about a 'del' keyword
by VladVons
Thu Mar 12, 2020 4:19 am
Forum: General Discussion and Questions
Topic: Class destructor doesnt work in micropython?
Replies: 11
Views: 1062

Class destructor doesnt work in micropython?

How to call class destructor in micropython? original documentation says "Special method __del__ not implemented" https://docs.micropython.org/en/latest/genrst/core_language.html What are you using to enter class destructor? class TFoo1(): def __init__(self): print('init') def __del__(self): print('...
by VladVons
Tue Mar 03, 2020 6:22 am
Forum: ESP8266 boards
Topic: pack.calcsize('1b1I') = 1+4=8 !?
Replies: 2
Views: 664

Re: pack.calcsize('1b1I') = 1+4=8 !?

oh yep, thanks!
by VladVons
Tue Mar 03, 2020 6:09 am
Forum: ESP8266 boards
Topic: pack.calcsize('1b1I') = 1+4=8 !?
Replies: 2
Views: 664

pack.calcsize('1b1I') = 1+4=8 !?

Code: Select all

    # size of byte is 1
    print(struct.calcsize('1b'))
    1

    # size of integer is 4
    print(struct.calcsize('1I'))
    4

    # size of byte + integer should be 5, but got 8
    print(struct.calcsize('1b1I'))
    8
by VladVons
Fri Feb 28, 2020 4:34 pm
Forum: ESP8266 boards
Topic: 'goto' in micropython
Replies: 11
Views: 1046

Re: 'goto' in micropython

Thanks Peter for your posts here.
Your GitHub is also a good reading book :)
by VladVons
Fri Feb 28, 2020 6:58 am
Forum: ESP8266 boards
Topic: how to WatchDog in ESP8266?
Replies: 4
Views: 542

Re: how to WatchDog in ESP8266?

I installed esp-open-sdk, micropython sources and finanly have my own firmware with all my libraries integrated. (if some one needs a linux batch script to build firmvare write me privat) The free RAM size inceased from 11k to 19k, but application still crashes when i use hardware timer. without a t...