Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3923

MicroPython • Re: Raspberry pi Pico W working only in Thonny IDE enviroment

$
0
0
i am making projec based on Raspberry pi Pico W and RFID-MR522 module. I encountered a problem, that my python script works onlt in Thonny IDE (using 'run' button). The code works perfectly in Thonny so I've saved the script onto my Pico and there starts issues. After I've placed both, the RFID module and raspberry pi PIco on my breadboard and provided with source of power, the code worked only partly. I use the gspread library, which works in Thonny, while it doesn't write data into google spreadsheets. I've checked connection, I've checked responsecode from url request and it was 200, but still the data isn't beeing written. What do i do?

"What do i do?"


Consult some of the many previous posts on similar topics.

It seems very likely that when running at startup the wireless association with your AP is not being reliably established before you try to make an Internet connection. (When running under the control of an IDE such as Thonny the microcontroller has time to complete the association before you make the data connection attempt.)


There is a similar - solved - thread from a few days ago here -> viewtopic.php?t=364624

Statistics: Posted by B.Goode — Fri Feb 02, 2024 11:14 am



Viewing all articles
Browse latest Browse all 3923

Trending Articles