I would like to build a Telegram chatbot on the Raspberry Pi Pico W. This should only be able to send sensor values and not process incoming messages. I know that this Pi is not quite suitable for this, but maybe someone can help me with this problem.
To send a message I wrote this:
Code: Select all
requests.post("MyURLForTelegram")
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 25, in <module>
File "urequests.py", line 120, in post
File "urequests.py", line 62, in request
OSError: [Errno 12] ENOMEM
Code: Select all
def clearram():
gc.collect()
gc.mem_free()
I am grateful for any help!