For college, I have been tasked with a project where I have to give wireless connectivity to a sensor, and to collect the wireless data on the field and present it to the user I would like to use a raspberry pi Zero.
The plan is to have the Zero run a local webserver to present the information in an html, and also send it to a remote location if an internet connection is available.
So for that, I would like the zero to get internet access if connected over USB to a PC, so the user can access the zero webserver through that connection and the zero to be able to send packets through the internet, while also being able to connect it to an android phone doing usb tethering and have the same functionality (not at the same time of course, just one or the other depending on what the user has on hand). All without using keyboard mouse or display just plug and go.
I have seen posts illustrating how to do either of those things, but since they have different steps I am not sure if I can do both at the same time.