Ok, now what ? (running custom code)

duffo64 shared this question 2 years ago
Answered

So, I mkflashed my wipy3, registered it in pybytes, downloaded firmware updater, flashed wipy pasting the unique code.... hooray ! It's up !

And now ? How do I make my wipy visible in pybytes WHILE running my code ?

If this is a silly question, my apologies, and greets from a pydiot :D

Comments (2)

photo
1

Hi,

that's a good question and I think that we don't explain this well in Pybytes at the moment.

If I understand it correctly, you can use the other "slower" method of adding device.Then you have full access to pybytes library files and you can add your custom code to main.py


c0534418bc5930258acc3021dfe538d9


Is this the answer you are looking for? Happy to help more:)

Have a nice day.

Jirka

photo
1

Jirka, I just saw this in the docs:

From firmware 1.16.x onward all Pycom devices come with build in Pybytes library in firmware specifically in /frozen folder. This allows you to add your device quickly to Pybytes. You can still upload your Pybytes library manually. Is this true ? I'm not sure to have such a folder on my WiPy (I.m on 1.16.0, tho).

Thank you.

photo
1

Hi Claudio,

yes that is correct. You can still flash and customize pybytes-library manually and it will run well with Pybytes too.


Flash folder is on every device. If you connect your device with Pymakr, you can even list it with os.listdir('/flash')


More info:

Pybytes library build in firmware in frozen folder is can be now flashed just with firmware updater inside Pybytes beta.

- So now publicly released firmware 1.17 is without "frozen" pybytes library

- And the "private" firmware 1.17 with frozen can be flashed with firmware updater from Pybytes.

photo
photo
1

Jirka,

Thanks for responding, but it's not what I had in my (maybe dirty) mind. After the successful registration in pybytes, I reloaded into the wipy my code (a simple BLE <> wifi gateway publishing events in my private MQTT broker) and in the same moment I lost visibility of the wipy from pybytes console. So I was asking how do I keep both things up. (Or, maybe, I totally missed your reply. I'm getting old and after 9 hours of work things start to look foggy).

Thanks

Claudio

photo
1

Ok, after getting home and a cup of coffee, I see that your reply makes sense. Just what I needed, thanks.

Claudio

photo
1

Please, could you mark this as solved ?

photo