Upload via hotspot when I press a button on Envio Grow Pico?

Hi!

We can’t get a reliable internet connection where we’ve installed our Enviro Grow Pico.

We’ll be visiting it every day and will be able to provide a wireless hotspot via a phone.

Could I configure my EnviroGrow to log data until I visit it and tell it to try and upload only after I’ve pressed a button or when the hotspot is present?

The system will be plugged in all day so power concerns around checking for network shouldn’t be an issue.

Where should I start with this?

I think all of this is possible, but not with the standard code provided by Pimoroni. Which is ok, their code is always a good starting point but for you own projects you need to be creative.

So I see a number of tasks:

  • log data locally to a file on the internal flash
  • execute code when you press a button or
  • poll for the hotspot (i.e. router)
  • configure the network of the Pico to use the phone as a router
  • read the file on the internal flash and upload all data
  • delete the file on the internal flash again

For all of these tasks you will find code-snippets in the Internet. Putting everything together is work, but you should also learn a lot along your journey.

1 Like