Search found 17 matches

by der_kps
Wed Apr 08, 2020 9:29 am
Forum: ESP8266 boards
Topic: print using %s %, ESP8266 vs ESP32
Replies: 3
Views: 273

Re: print using %s %, ESP8266 vs ESP32

Thanks for answering again! The len of request = conn.recv(1024) is 375 Bytes (nice to know) 8-) A simple print('Content =', request) doesn't make the result better. Trieing print('Content = {} {}'.format(len(request), str(request))) shows that it is impossible to do this print with ESP8266/D1mini p...
by der_kps
Tue Apr 07, 2020 7:33 pm
Forum: ESP8266 boards
Topic: print using %s %, ESP8266 vs ESP32
Replies: 3
Views: 273

print using %s %, ESP8266 vs ESP32

Hello! I use this codesnippet at the end of my AP/STA Template. Further Connecting WLAN (ssid, pwd) is successfully done. # Connecting to WLAN, reading sensors, making webpage are done 1 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 2 s.bind(('', 80)) 3 s.listen(1) #only one client 4 while T...
by der_kps
Sun Apr 05, 2020 8:13 pm
Forum: ESP8266 boards
Topic: import bme280.py fails
Replies: 2
Views: 233

Re: import bme280.py fails

Ok,the small RAM (<36KB) might be a problem. But I think I don't understand the solution and have tried this: I open the bme280.py (or any other library) and download this file into the device. I do not run it (F5)! BMP280 (7kB) is a Sensor for Temp + Press; BME280 (11kB) is a Sensor for Temp + Pres...
by der_kps
Fri Apr 03, 2020 11:01 pm
Forum: ESP8266 boards
Topic: import bme280.py fails
Replies: 2
Views: 233

import bme280.py fails

Hello, I've some programms running well in an ESP32 environment and I want to run them on a D1mini Pro (16MB) with ESP8266 firmware (flashed by uPyCraft). Several Problems occur. One of them is this: import bmp280.py is ok. I get at last the answer >>> import bme280.py fails with the answer: downloa...
by der_kps
Fri Apr 03, 2020 4:04 pm
Forum: ESP8266 boards
Topic: D1mini Pro Firmware drives an AP in background
Replies: 6
Views: 345

Re: D1mini Pro Firmware drives an AP in background

Well,
'I'll kill that ...' AP.

Thanks to both!

der_kps
stay healthy!
by der_kps
Tue Mar 31, 2020 10:04 pm
Forum: ESP8266 boards
Topic: D1mini Pro Firmware drives an AP in background
Replies: 6
Views: 345

Re: D1mini Pro Firmware drives an AP in background

Hello again!
Moments later I recognize that I've scrolled over the solution:
>>> import webrepl_setup
I set it to 'D' and restart.
AP seems not to be running but is still available in WLAN.
:idea:
Thanks
by der_kps
Tue Mar 31, 2020 9:28 pm
Forum: ESP8266 boards
Topic: D1mini Pro Firmware drives an AP in background
Replies: 6
Views: 345

Re: D1mini Pro Firmware drives an AP in background

OK! 1.6. WiFi: 'WiFi configuration will be discussed in more detail later in the tutorial.' Where is later? 2.2. WebREPL - a prompt over WiFi The benefit should be an alternative to the known commandline. Actually I'm logged in (ipad) but can't get access (192.168.4.1). I try it later. And (hence?) ...
by der_kps
Tue Mar 31, 2020 8:22 pm
Forum: ESP8266 boards
Topic: D1mini Pro Firmware drives an AP in background
Replies: 6
Views: 345

D1mini Pro Firmware drives an AP in background

[*]Hello! I've made my experiences with ESP32/uPython. Now I'm testing D1mini Pro. First I've loaded the firmware 'esp8266-20200326-v1.12-307-gad004db66.bin' with uPyCraft. Most of the customized ESP32 Sketches are working. :D Once the firmware is flashed, I notice an active WLAN 'MicroPython-db5c7f...
by der_kps
Sun Mar 08, 2020 10:28 pm
Forum: General Discussion and Questions
Topic: check if a file exists AND is (not) empty
Replies: 2
Views: 285

Re: check if a file exists AND is (not) empty

Ok,

Code: Select all

cont = uos.stat('MyFile.txt')[6]
makes the wanted exception if the file is missing and [6] tells the used bytes.
I can ask 'cont' if the file is empty or not :D

Thanks!
by der_kps
Sun Mar 08, 2020 11:59 am
Forum: ESP32 boards
Topic: extern reset/restart
Replies: 2
Views: 241

Re: extern reset/restart

EN (switch on board) does a reset. No need to use GIOP 13 with .reset()
Thanks!

Regards
out of the
knietiefen Sauerland :)