Search found 16 matches

by kkumar326
Fri Feb 09, 2018 8:17 am
Forum: General Discussion and Questions
Topic: How to send/ receive data through socket in Non-Blocking mode?
Replies: 2
Views: 2749

How to send/ receive data through socket in Non-Blocking mode?

In documentation, it is written that non-blocking just sets the timeout to 0 seconds
sock.setblocking(False) is equivalent to sock.settimeout(0)
and thus it's not possible to get or send data. Is there some hack or workaround to get both of these things done simultaneously?

I'm working on ESP8266.
by kkumar326
Wed Feb 07, 2018 10:08 am
Forum: General Discussion and Questions
Topic: Sqlite3 throwing: AttributeError: 'NoneType' object has no attribute 'func'
Replies: 2
Views: 4437

Sqlite3 throwing: AttributeError: 'NoneType' object has no attribute 'func'

Hello, I was checking sqlite3 module from here: https://github.com/micropython/micropython-lib/tree/master/sqlite3 I imported ffilib library from here: https://github.com/micropython/micropython-lib/blob/master/ffilib/ffilib.py Now, when I'm running "import sqlite3", I'm getting this error: Tracebac...
by kkumar326
Tue Jan 23, 2018 7:03 am
Forum: General Discussion and Questions
Topic: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?
Replies: 9
Views: 29677

Re: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?

1 MB is a lot. I'll build custom firmware with frozen modules then. That'll save me some RAM memory. Thanks a lot for this clear detail :D
by kkumar326
Mon Jan 22, 2018 10:12 am
Forum: General Discussion and Questions
Topic: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?
Replies: 9
Views: 29677

Re: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?

There is no way to trace as it's not running at all. I think the issue is actually due to filesize which is getting bigger than available RAM. This is just a guess though as I don't really know how files are interpreted in Micropython. I'll follow your suggestion to add/remove blocks. It'd give some...
by kkumar326
Mon Jan 22, 2018 9:46 am
Forum: General Discussion and Questions
Topic: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?
Replies: 9
Views: 29677

Re: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?

There is only a limited amount of memory available. Due to fragmentation, or just because you are allocating a lot, you reached the limit and cannot allocate more. There have been numerous threads about this already, just search the forum for MemoryError. I went through many posts but couldn't real...
by kkumar326
Mon Jan 22, 2018 9:32 am
Forum: General Discussion and Questions
Topic: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?
Replies: 9
Views: 29677

What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?

I'm getting this error: MemoryError: memory allocation failed, allocating 964 bytes
Now, I don't know how to approach for the fix as I don't really understand what's really happening here.
Please let me know about the error and what should I do to fix this? :idea:
Thanks a lot.
by kkumar326
Mon Jan 15, 2018 7:12 am
Forum: General Discussion and Questions
Topic: What modules are pre-installed in esp8266 firmware binary?
Replies: 2
Views: 2157

Re: What modules are pre-installed in esp8266 firmware binary?

Roberthh wrote:
Mon Jan 15, 2018 6:52 am
You can see the list of all active modules with:

Code: Select all

help("modules")
Thanks a lot :D