main.py does not exist! #11839
-
I have a number of picows round the house measuring temp and humidity. I have written some code to put in the temp/humid monitors to enable me to update/modify the code in the picows. My PC sends UDP packets to the picow to perform various actions. The following commands work ok ..List Files (List the files in the picow), Load File (copies a file to the picow), Delete File and Reset Pico.
I suspect that I dont quite understand how the picow works , any suggestion most welcome |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
There should be no problem reading the running file: by the time the code starts to run it has been compiled to bytecode which is located in RAM. The "running" file is just sitting in the filesystem being ignored. I don't use Thonny: is it possible that your tools precompile the file to an |
Beta Was this translation helpful? Give feedback.
-
Your code:
Most likely your exception handling is way too broad.
I would print the real exception in the except block. |
Beta Was this translation helpful? Give feedback.
-
Many thanks for both your suggestions .. Ive had a brief look at mpremote and I think its worth spending more time to get used to it. |
Beta Was this translation helpful? Give feedback.
-
Ive written a small program to send ever increasing UDP messages until I get an error .. ENOMEM This value = 7742 bytes. |
Beta Was this translation helpful? Give feedback.
-
Script file 'main.py' does not exist. |
Beta Was this translation helpful? Give feedback.
Ive written a small program to send ever increasing UDP messages until I get an error .. ENOMEM This value = 7742 bytes.
On my desktop this value is 63552.
Micropython has obviously changed the the max message size since picos etc are a bit smaller than my desktop :-)))