That is not true. It is implemented (and undocumented) for esp8266 too.jimmo wrote: ↑Thu Oct 03, 2019 12:51 pmUnfortunately this is an ESP32-only feature and not currently documented. https://github.com/micropython/micropyt ... rtc.c#L128
Search found 59 matches
- Thu Oct 03, 2019 3:31 pm
- Forum: General Discussion and Questions
- Topic: How Should WiFi Passwords be securely stored on micropython device?
- Replies: 15
- Views: 15955
Re: How Should WiFi Passwords be securely stored on micropython device?
- Fri Sep 27, 2019 6:08 pm
- Forum: General Discussion and Questions
- Topic: How Should WiFi Passwords be securely stored on micropython device?
- Replies: 15
- Views: 15955
Re: How Should WiFi Passwords be securely stored on micropython device?
So you should prevent this by cutting off the pins that connect to tx/rx, fill your device (especially also the flash memory) with epoxy etc. What exactly do you mean with "epoxy" etc. ? I never heard about this term in this kind of area. I mean like 2 component epoxide glue. I have to say! This is...
- Fri Sep 27, 2019 3:51 pm
- Forum: General Discussion and Questions
- Topic: How Should WiFi Passwords be securely stored on micropython device?
- Replies: 15
- Views: 15955
Re: How Should WiFi Passwords be securely stored on micropython device?
I'm mainly using ESP-8266/32 boards. Now to access the network with the device you have to put the clear WIFI credentials into your scripts For esp32 that is true for esp8266 there is no need to store credentials in your script. But as you said, if you have access to the device you can read out all...
- Wed Sep 25, 2019 4:07 pm
- Forum: ESP8266 boards
- Topic: How to measure time accurately?
- Replies: 6
- Views: 5327
Re: How to measure time accurately?
My mistake was a typo in my post. I meant ticks_ms, not ticks_us. I've correct the post. Thanks. But even then then you can not have a mismatch of 10 seconds in 10 minutes because ticks_ms uses ticks_us. And yes, if you keep track of the overflows you can use that as your time. I have made a digita...
- Wed Sep 25, 2019 1:12 pm
- Forum: ESP8266 boards
- Topic: How to measure time accurately?
- Replies: 6
- Views: 5327
Re: How to measure time accurately?
and time.ticks_us() is only slightly better (fell 10 seconds behind in a 10 minute test). Then you made a mistake or your device is broken. time.ticks_us() is very accurate. (about 2 seconds per 24 hours or less). Are you aware that ticks_us() uses a 30-bits counter that overflows after about 17 mi...
- Tue Sep 24, 2019 4:06 pm
- Forum: Programs, Libraries and Tools
- Topic: [SOLVED] uansycio.websocket.server/example_websock.py
- Replies: 10
- Views: 33587
Re: uansycio.websocket.server/example_websock.py
I had that error too (error on client side) when I was trying to develop an Android App (based on html, js and css that worked on my laptop and Google Chrome browser). I finally found out that it was caused by using the emulator of Android Studio. As soon as I used my "real" telephone as test device...
- Tue Sep 24, 2019 11:03 am
- Forum: Programs, Libraries and Tools
- Topic: [SOLVED] uansycio.websocket.server/example_websock.py
- Replies: 10
- Views: 33587
Re: uansycio.websocket.server/example_websock.py
uwebsocket should work. Can you try another client? For example on this site: https://www.websocket.org/echo.html look at "Creating your own test" I used this to do a simular project as you and that worked (websocket on esp8266). The advantage is that if you use "index.html, js , css" in a folder on...
- Sat Jul 27, 2019 8:54 am
- Forum: ESP8266 boards
- Topic: How to encrypt a file?
- Replies: 9
- Views: 10011
Re: How to encrypt a file?
There is no need to store the password in a file. Once you entered the password it will be stored 'somewhere' in the esp. So after reboot it will use that stored password.
- Tue May 21, 2019 11:00 am
- Forum: ESP8266 boards
- Topic: [SOLVED] uasyncio is blocked for 1 hour, 11 minutes on ESP8266
- Replies: 26
- Views: 12546
Re: uasyncio is blocked for 1 hour, 11 minutes (Bug?)
That could be tricky. If for example in an interrupt occurs which calls 'ets_loop_iter', in the middle of 'mp_hal_ticks_ms', then 'system_time_high_word' may be incremented 2 times. I think you should protect the code with ets_intr_lock();/ets_intr_unlock(); just as in 'ets_loop_iter'. Or 'mp_hal_ti...
- Tue May 21, 2019 9:04 am
- Forum: ESP8266 boards
- Topic: [SOLVED] uasyncio is blocked for 1 hour, 11 minutes on ESP8266
- Replies: 26
- Views: 12546
Re: uasyncio is blocked for 1 hour, 11 minutes (Bug?)
MICROPY_PY_UTIME_TICKS_PERIOD = 2^30.
So MICROPY_PY_UTIME_TICKS_PERIOD-1 is used as a mask of 30bits (0b111111111111111111111111111111)
So MICROPY_PY_UTIME_TICKS_PERIOD-1 is used as a mask of 30bits (0b111111111111111111111111111111)