Search found 48 matches

by ChrisO
Thu Jul 07, 2022 6:34 am
Forum: General Discussion and Questions
Topic: How to deal with mqtt_as and multiple subscriptions?
Replies: 5
Views: 1759

Re: How to deal with mqtt_as and multiple subscriptions?

I don’t think that’s how mqtt_as was built. Generally you subscribe with a broad enough topic with the use of wildcard and you let the subs_cb filter the messages based on topic. If you process messages right when they come in, it usually doesn’t take that long, so I’m not sure what you want to use ...
by ChrisO
Fri Jul 01, 2022 9:07 am
Forum: Programs, Libraries and Tools
Topic: How to configure CMAKE to detect source code changes?
Replies: 2
Views: 2169

Re: How to configure CMAKE to detect source code changes?

When I change a line in my source code, (located in the top level directory) calling `make all` does not pick up the changes. This looks like a bug in our CMake config... CMake makes this very difficult. It looks ninja only understands the final step in the chain (firmware->frozen_content.c) but no...
by ChrisO
Wed Jun 29, 2022 12:07 pm
Forum: General Discussion and Questions
Topic: add payload to POST request
Replies: 5
Views: 4144

Re: add payload to POST request

someone will come along with a full fledged example, I'm sure. In the meantime, if you won't want to wait. I'd take a cpython example like the one discussed here: https://stackoverflow.com/questions/28670835/python-socket-client-post-parameters besides Content-Length it seems like you have to byte e...
by ChrisO
Wed Jun 29, 2022 12:03 pm
Forum: General Discussion and Questions
Topic: add payload to POST request
Replies: 5
Views: 4144

Re: add payload to POST request

I haven't done this before, but I'm guessing you need to add the Content-Length header is well.
by ChrisO
Wed Jun 29, 2022 9:13 am
Forum: Programs, Libraries and Tools
Topic: How to configure CMAKE to detect source code changes?
Replies: 2
Views: 2169

How to configure CMAKE to detect source code changes?

Hi, I have a project which, in terms of directory structure looks like this: - main project (git repo) - subfolder: esp-idf (created with the help of `ci_esp32_setup_helper v4.4.1`) - submodule: micropython v1.18 in micropython/ports/esp32/boards/manifest.py I have the following contents: # manifest...
by ChrisO
Thu Jun 23, 2022 8:45 am
Forum: General Discussion and Questions
Topic: Guru Meditation Error: Core 0 panic'ed (LoadProhibited)
Replies: 10
Views: 5810

Re: Guru Meditation Error: Core 0 panic'ed (LoadProhibited)

What makes you so sure that this is where you code crashes? YEAR=str(time_stamp[0]) Where you able to do decode with the dump? If so, can you teach me how you did that? :-) If you're saying this purely based on the logs, it seems like there are a no more logs after print(time_diff) so the issue coul...
by ChrisO
Fri Jun 10, 2022 11:27 am
Forum: General Discussion and Questions
Topic: SLIGHTLY DIFFERENT ERRORS
Replies: 1
Views: 987

Re: SLIGHTLY DIFFERENT ERRORS

Hi, I'm responding since you asked me about it. Unfortunately I do not have an answer for you. I suspect there's slight inconsistencies in the underlying C modules so the specific reason might be platform/port specific. (maybe you can share that info) Seems like you should at least be able to compar...
by ChrisO
Thu Jun 09, 2022 12:34 pm
Forum: General Discussion and Questions
Topic: esp32 OTA can be so aggravating
Replies: 7
Views: 2933

Re: esp32 OTA can be so aggravating

nvm, I shot myself in the foot, big time, by making micropython a submodule of my project.
Turns out I butchered merging code and was missing stuff all kinds of mbed_tls related C code.

Thanks for all your time and info.
by ChrisO
Thu Jun 09, 2022 12:11 pm
Forum: General Discussion and Questions
Topic: esp32 OTA can be so aggravating
Replies: 7
Views: 2933

Re: esp32 OTA can be so aggravating

would you mind sharing the details of your dev environment? What commit of micropython are you on and what version of esp-idf are you using? I've used various versions of both Micropython and IDF over the last few months so I don't think it matters. My current build is using Micropython 5e685a9c6fa...
by ChrisO
Thu Jun 09, 2022 11:38 am
Forum: General Discussion and Questions
Topic: a Tip when working with OSErrors
Replies: 1
Views: 856

a Tip when working with OSErrors

Hi, For the longest time I did not realise this, but whenever you catch an OSError, you might want to do more than than just print it like so: try: methodWhichProducesOSError() except OSError as e: print('OSError: ', e.errno) In my case I was having trouble with a custom build which would result in ...