Replies: 4 comments 6 replies
-
My dear friend, apart from the problem of crashing the software, I received another error related to RAM, which is now added to the previous problem: Please tell me the final solution to solve these problems |
Beta Was this translation helpful? Give feedback.
-
bro please help i am needed help. |
Beta Was this translation helpful? Give feedback.
-
A |
Beta Was this translation helpful? Give feedback.
-
As an example, how should I use these codes?! It only explains how to install this library, but there is no sample code, please give me an example so I can learn how to use it, I really don't know how to use it. |
Beta Was this translation helpful? Give feedback.
-
The software is working, and when I want to go from one page to another, the software hangs for no reason.
Like the picture below:
My software settings are as follows:
app = Microdot() Response.default_content_type = 'text/html' Response.default_send_file_max_age = 3600 freq(240000000)
I even tried to change the frequency of my CPU from 160 MHz to 240 MHz, so that maybe the problem is with the internal processing, but it didn't work.
After that, I thought maybe the problem was with the files, but I reduced my file size to below 5 kilobytes and used utemplate to maybe solve the problem, but it still didn't solve it.
Another solution:
Every time the function is executed, I tried to first empty the RAM space inside the microcontroller using the gc.collect() command, and I was still not satisfied with this, and I tried to use the time.sleep(3) command until the user It sends resets one after the other, the software or microcontroller does not crash, but the problem is still not solved!
Example Code :
`
Medical
@app.route('/medical')
async def index(req):
time.sleep()
gc.collect()
name = None
return Template('Medical.html').render(name=name)
`
The last solution I tried was:
Instead of using app.run() directly, I used parallel processing in my code like below, but still didn't solve my problem.
`
async def main():
await app.start_server(debug=True, port=80)
asyncio.run(main())
`
Finally, my problem is that the microdot version 2.0.8 software crashes for no reason, does not give an error, does not exit the software execution loop, or anything else.
I want to know exactly how I can solve my problem?!
Thank you very much in advance for giving me your precious time
Beta Was this translation helpful? Give feedback.
All reactions