Search found 11 matches

by GordanTrevis
Thu Oct 03, 2019 12:10 pm
Forum: General Discussion and Questions
Topic: How Should WiFi Passwords be securely stored on micropython device?
Replies: 15
Views: 16030

Re: How Should WiFi Passwords be securely stored on micropython device?

@jomas I mean like 2 component epoxide glue. Oh, you meant that literal... import machine rtc = machine.RTC() rtc.memory(b'hello') NICE! yes this only should work for ESP32. But where did you get that info? I don't see any documentation about a "rtc.memory(b'hello')" function? (i also could be blind...
by GordanTrevis
Thu Oct 03, 2019 11:40 am
Forum: ESP8266 boards
Topic: Change hostname.
Replies: 15
Views: 25727

Re: Change hostname.

Hey, Jimmo thanks for the answer as well in my duplicate Thread. it took me a while to answer, due to massive network issues which came upon me :lol:. Yes, it works! My mistake was that I not issued "sta.active(True)" before "sta.config()". (-> Due to missing Documentation at that time) But as menti...
by GordanTrevis
Fri Sep 27, 2019 5:22 pm
Forum: General Discussion and Questions
Topic: How Should WiFi Passwords be securely stored on micropython device?
Replies: 15
Views: 16030

Re: How Should WiFi Passwords be securely stored on micropython device?

Nice Input! For esp32 that is true for esp8266 there is no need to store credentials in your script. Yes I heard about that while working with Peter Hinch's MQTT lib. But never tested until now. Actually wanted to put the possibility in the post to. I tried it and it works on ESP8266. - Also, to my ...
by GordanTrevis
Fri Sep 27, 2019 11:40 am
Forum: General Discussion and Questions
Topic: Change Network Hostname of Device?
Replies: 1
Views: 2655

Change Network Hostname of Device?

I mainly using ESP-8266/32 Boards - But I think this applies in general. How can I change the Hostname of the Board? Right now I have a lot of ESP-XXXXXX devices in my network and want to give my babys a proper name ;) It was already asked a few years ago, but since then a lot has changed, and the ...
by GordanTrevis
Fri Sep 27, 2019 11:28 am
Forum: General Discussion and Questions
Topic: How Should WiFi Passwords be securely stored on micropython device?
Replies: 15
Views: 16030

How Should WiFi Passwords be securely stored on micropython device?

I currently think a lot about Network Security, especially with embedded devices. 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 (somewhere) since normal routers do not support hashing etc. This is a common ...
by GordanTrevis
Thu Sep 12, 2019 2:42 pm
Forum: ESP8266 boards
Topic: Change hostname.
Replies: 15
Views: 25727

Re: Change hostname.

I'm trying to archive similar a few years later.
on ESP32/ESP8266

i tried.
wlan.config(dhcp_hostname="foo-bar-baz")
befor or after conecting via wlan.conect returns OSError: TCP/IP IF Not Ready

so how is it possible to add a Cname or hostname?
by GordanTrevis
Mon Aug 26, 2019 9:57 am
Forum: General Discussion and Questions
Topic: asyncio await a task
Replies: 9
Views: 5105

Re: asyncio await a task

The Gather Class is from the asyn libary which eventualy fixed the problem.
But the library was not implemented in the initial code of the problem (first post).
by GordanTrevis
Mon Aug 26, 2019 8:24 am
Forum: General Discussion and Questions
Topic: asyncio await a task
Replies: 9
Views: 5105

Re: asyncio await a task

gotcha! I did not know you can bring the Bords to its limits this easily - but makes absolute sense. Freezing sounds incredibly cool and useful! Thank you for that! I somehow figured out how to create a .mpy file, and as expected it works and imports like a charm. Thank you for that info too! ( For ...
by GordanTrevis
Sun Aug 25, 2019 8:38 am
Forum: General Discussion and Questions
Topic: asyncio await a task
Replies: 9
Views: 5105

Re: asyncio await a task

Thanks! This method works almost fine! (I did not know that asyn was a extra script which has to be loaded) If I "import asyn" my ESP8266(D1mini) throughs a MemoryError (with no additional information). If I try multiple times, it eventually imports an empty asyn. To clarify I created an asyn.py fil...
by GordanTrevis
Sat Aug 24, 2019 6:55 pm
Forum: General Discussion and Questions
Topic: asyncio await a task
Replies: 9
Views: 5105

Re: asyncio await a task

Shure, That's True!

But the problem is how I correctly substitute the "await asyncio.wait([task1, task2])" line in Micropython.

Right now the script would finish in 2ms since it does not wait for the tasks to be finished.