Search found 13 matches

by jarekd
Mon Oct 22, 2018 10:31 pm
Forum: ESP8266 boards
Topic: how can non-blocking socket instances be implemented
Replies: 10
Views: 4749

Re: how can non-blocking socket instances be implemented

Peter,
I'm trying to replace select.select with poll method, but without success... After calling p.ipool() script just stop working (waiting for something?).

Code: Select all

# s - my socket object

p = select.poll()
p.register(s)
while True:
	a, b = p.ipoll()   # stops here...
	...
by jarekd
Tue Sep 25, 2018 2:26 pm
Forum: ESP8266 boards
Topic: optimising memory usage - crashes
Replies: 1
Views: 370

optimising memory usage - crashes

Hi. I'm trying to optimise memory usage in my code because sometimes I get memory allocation errors. The main part is pasted below. I'm interested if it could be done better: memory errors are showing up mostly when I'm replacing parts of html_content. I need that part, as server is updating html wi...
by jarekd
Tue Sep 25, 2018 10:41 am
Forum: ESP8266 boards
Topic: Connect to WIFI with specific BSSID (parsing issue)
Replies: 2
Views: 810

Re: Connect to WIFI with specific BSSID (parsing issue)

Not sure about your method. Just posting the one I created - for now it works flawlessly, connecting to strongest from known networks. If someone spots anything that can be optimised in the code, feel free to post your sugestions :) # wifi.py import network, utime _wifi_list = {'network1':'password1...
by jarekd
Mon Sep 24, 2018 1:11 pm
Forum: General Discussion and Questions
Topic: I am looking to hire an ESP32 Python programmer
Replies: 1
Views: 413

Re: I am looking to hire an ESP32 Python programmer

sorry to say that, but speech recognition - it looks like too much for esp32 :)
by jarekd
Sun Sep 23, 2018 11:04 pm
Forum: General Discussion and Questions
Topic: GET requests
Replies: 1
Views: 318

GET requests

Hi :) I don't want to re-invent the wheel (polish proverb), so I'm posting: is there some nice way (library?) of handling this kind of GET requests: GET /smooth?power=300&balance=0.05&time=5.0 HTTP/1.1 What I'm trying to do: I have web server on ESP8266. If you enter it's address in web browser with...
by jarekd
Thu Sep 20, 2018 3:59 pm
Forum: ESP8266 boards
Topic: ssd1306 oled: scroll repeats edge pixels
Replies: 5
Views: 724

Re: ssd1306 oled: scroll repeats edge pixels

The only solution to fix this, is just scrolling and then drawing empty rectangle in place, where garbage shows up.
by jarekd
Thu Sep 20, 2018 3:39 pm
Forum: ESP32 boards
Topic: Thingspeak - connection timeout
Replies: 1
Views: 393

Thingspeak - connection timeout

Hi. It may be some lame mistake on my side - so sorry in advance :) I'm using Loboris port on my ESP32 Wroom module (bare module) and I'm trying to connect to ThingSpeak - but after editing sample from wiki (Loboris one) - I'm getting only "Not connected" status. My module is already connected to lo...
by jarekd
Sun Jul 22, 2018 7:23 pm
Forum: ESP8266 boards
Topic: ssd1306 oled: scroll repeats edge pixels
Replies: 5
Views: 724

ssd1306 oled: scroll repeats edge pixels

Hey. When I scroll screen using scroll(x,y), if there were any pixels touching the edge of the screen it repeats them over and over. Is there any way to avoid this?
by jarekd
Mon Feb 19, 2018 12:47 am
Forum: Drivers for External Components
Topic: RGB and Gesture Sensor - APDS-9960
Replies: 16
Views: 7161

Re: RGB and Gesture Sensor - APDS-9960

I know it's been a while on this thread, but I adapted the code in the above link to MicroPython. It is obvious that code was never used in it's current form. It has a few syntax errors and omissions. However with the few fixes it does work. Hey :) Are you sharing somewhere your driver code? I was ...
by jarekd
Mon Jan 29, 2018 10:58 pm
Forum: ESP8266 boards
Topic: MQTT on Esp8266
Replies: 5
Views: 1143

Re: MQTT on Esp8266

Thank you : )
Just few minutes before reading your answer found info about mqtt.simple and mqtt.robust.
Anyway, in the meantime, I have created (very simple) communication between my modules and Mac in python using sockets and simple messages - it works, so no need for mqtt - for now at least.