Skip to main content
3 votes
Accepted

Can I compile Python on my PC, load it to an ESP32 and run it?

Based on this forum post, it is possible to include precompiled scripts (in a modules directory at build time) in the flash image. This requires the config FROZEN_MPY_DIR. It is also possible to ...
Sean Houlihane's user avatar
2 votes

Python Paho MQTT 2.5 KB messages not sending for days, while 0.1 KB messages send fine

There may be paths with a MTU of 1280 in the way. Try 1100 or 1200 and see if that fixes it. If not, try to find an MTU finder app to try to find the MTU to your destination from your source.
kalyanswaroop's user avatar
2 votes
Accepted

Python Paho MQTT 2.5 KB messages not sending for days, while 0.1 KB messages send fine

Based on what we've seen in the comments and edits, I think it might be worth setting a lower MTU for the cellular link. Try running something like the following: nmcli con mod "user_apn" ...
hardillb's user avatar
  • 12.6k
2 votes
Accepted

Python Paho MQTT doesn't work via LTE

The Paho Python library will work just fine via LTE. The library is built to interact with the OS's TCP/IP stack. It has no knowledge of the underlying hardware of how that TCP/IP stack talks to the ...
hardillb's user avatar
  • 12.6k
2 votes
Accepted

Unable to publish MQTT server in an infinite while loop in Python script

You should not be running long running (infinite loops) in the callbacks. All the callbacks run on the client network thread's main loop (the one started by client.loop_forever()). This means if the ...
hardillb's user avatar
  • 12.6k
2 votes

Can I retrieve a Python program from an ESP32?

In most cases (that is, unless you have compiled/frozen the Python code), yes. Depending on the exact environment you may be able to just retrieve the file via the usual file transfer tools. ...
jcaron's user avatar
  • 2,303
1 vote

Circuit python express loads boot mode but doesn't flash .uf2

This is the expected behavior. It's not an error. When you drop a .uf2 file on the virtual disk, the bootloader stores the firmware in a different section of the flash memory. It's pointless to keep ...
romkey's user avatar
  • 325
1 vote
Accepted

How to control the state of GPIO pins on ESP32 Camera from an external python script?

The easy way you can use http request when you detect something, while running the python app, you send a POST request, this link could help you: https://stackoverflow.com/questions/10313001/is-it-...
offgrid8's user avatar
  • 123
1 vote

How to setup a one-writer, one-reader system between a python script updating data from my home computer and an RPI reading the data?

At the moment, perhaps you're not wanting to have your code reviewed as I suggested in the comment. So, if you actually want to go ahead and try to do the solution you proposed, here are some options ...
kalyanswaroop's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible