Main.py seems to be updating, but isn't!
-
I've been working on a script:
https://github.com/cclawton/lopy4-pysense-ttn-aws-bidrectionalthat sends a temperature payload up to TTN and will receive a code and set LED based on the byte sent.
It all works well in interactive mode out of Atom with Pymakr.
When copy the script text into the main.py that comes with the PyBytes stuff (below the "Please put your USER code below this line" bit) and adjust for indents etc., the upload of the main.py works as expected from Atom.
BUT when I boot the LoPy its still running the original main.py. I know this because the updated script has a different print statement before the "USER code" bit. and I can see the old script print output in the Atom console.
I've downloaded the flash to a new directory and the main.py is the correct updated one.
I'm sure it's something simple.... but it's doing my head in. Any ideas?
-
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login