Search found 12 matches

by ttadam
Mon Nov 30, 2020 5:16 pm
Forum: Programs, Libraries and Tools
Topic: mpy-cross general
Replies: 1
Views: 222

mpy-cross general

Hello there, I didn't find any general discussion about this this tool/method so I took the bravery and opened one. Currently I am running into all kind of memory allocation issues, and my idea is to use precompiling, like mpy-cross. The issue is that I don't really find a good tutorial/step-by-step...
by ttadam
Wed Nov 25, 2020 10:07 pm
Forum: General Discussion and Questions
Topic: urequests causing memory allocation failed
Replies: 0
Views: 202

urequests causing memory allocation failed

Hello there, I am using a public library for OTA update. This library is working great, but causing memory allocation errors at two place: - When urequests getting called - When downloading larger .py files, (larger means, longer 240 lines) "memory allocation failed, allocating 4352 bytes" I tried t...
by ttadam
Tue Nov 10, 2020 10:46 am
Forum: General Discussion and Questions
Topic: searchig for a file in sd
Replies: 4
Views: 876

Re: searchig for a file in sd

Thank you! :) Using os.ilistdir() only to convert the return value to a list isn't very effective and can lead to memory errors when searching directories with many entries. Here's my version of a find function, which acts as an iterator, i.e. yields matching files (with full path) one by one. It re...
by ttadam
Mon Nov 09, 2020 8:17 pm
Forum: Programs, Libraries and Tools
Topic: MQTT and wss/websocket secure
Replies: 0
Views: 996

MQTT and wss/websocket secure

Hello there!

Can you recommend me a library, where I can connect to a emqx mqtt server via websocket(443)
I used mqttsimple but that library can't handle that kind of connection.

Thank you,
by ttadam
Thu Oct 22, 2020 9:59 am
Forum: Programs, Libraries and Tools
Topic: mqtt connection difference between lan and wifi
Replies: 0
Views: 952

mqtt connection difference between lan and wifi

Hello there, I am using a wesp32 board, because of poe. This device, collect some data then publish it to an mqtt server Right now I changed the mqtt connection to ssl, and I get an OSError: 16 from this line self.sock = ussl.wrap_socket(self.sock, **self.ssl_params) The funny thing is that this err...
by ttadam
Thu Oct 22, 2020 9:57 am
Forum: Programs, Libraries and Tools
Topic: mqtt error 16 during publish
Replies: 4
Views: 511

Re: mqtt error 16 during publish

I think I got closer to the issue. It is not mqtt error 16, it is an OSError 16... and coming from the mqtt library from this line:
self.sock = ussl.wrap_socket(self.sock, **self.ssl_params)
by ttadam
Tue Oct 13, 2020 1:13 pm
Forum: Programs, Libraries and Tools
Topic: mqtt error 16 during publish
Replies: 4
Views: 511

Re: mqtt error 16 during publish

I am using mqtt simple.
The server/Broker is emqx v4.
by ttadam
Tue Oct 13, 2020 8:35 am
Forum: Programs, Libraries and Tools
Topic: mqtt error 16 during publish
Replies: 4
Views: 511

mqtt error 16 during publish

Hello there, Well, I stuck therefore I ask some help from the community. I have an esp32, what sends to an mqtt server, and after a few (like 5 or 6) publish I receive an error 16, and after that that is the only thing what happening every time when the board wants to publish. Did some digging, I fo...
by ttadam
Wed Sep 16, 2020 12:52 pm
Forum: ESP32 boards
Topic: ussl.CERT_NONE
Replies: 2
Views: 403

Re: ussl.CERT_NONE

Do you have some recomendation how to overcome this issue? The docs are a bit confusing for historical reasons (the ussl module differents between different MicroPython ports, but the docs are for the CC3200 version). On every other port, the cert_reqs argument isn't supported. You don't need to sp...
by ttadam
Mon Sep 14, 2020 5:43 pm
Forum: ESP32 boards
Topic: ussl.CERT_NONE
Replies: 2
Views: 403

ussl.CERT_NONE

Hello there, I would like to use robust mqtt client ( https://github.com/fizista/micropython-umqtt.robust2 ), and I run into an issue. I want to connect with ssl, and ssl params should be CERT_NONE, but on my implementation of micropython (wesp32 with 1.13 version of ESP-IDF v3.x, (only v3.x has lan...