Hi guys,
Currently, I am doing a project and I want to ask some questions.
1. Will the iot market product become non-functionable if the Internet connection is lost (cannot connect to the their cloud)?
2. Will the above problem exist for the Rpi products?
3. If I want to do a project that, if the WIFI connection is lost for my RPi zero w, the device will automatically change to use bt to communicate with other connected gadgets. Is it possible to do this?
Thanks a lot!
Re: Is it possible to use both wifi & bt connection at the same time?
1. Depends.
2. Depends.
3. Depends.
2. Depends.
3. Depends.
Re: Is it possible to use both wifi & bt connection at the same time?
You could probably script it by checking if wlan0 has an IP address, and switching if it doesn't (or switching back if it does).
Headless PI. OMG, someone cut it's head off. Oh, hang on. it didn't have one to start with.
Re: Is it possible to use both wifi & bt connection at the same time?
wtshing,
Certainly there are IOT devices that become useless if the manufacturer's servers goes away. It has happened many times already.
What IOT product do you mean?1. Will the iot market product become non-functionable if the Internet connection is lost (cannot connect to the their cloud)?
Certainly there are IOT devices that become useless if the manufacturer's servers goes away. It has happened many times already.
No. The Raspberry Pi is not such a device. It's a general purpose computer. What it does is all up to you.2. Will the above problem exist for the Rpi products?
I'm sure it's possible. You just have to configure/program it so.3. If I want to do a project that, if the WIFI connection is lost for my RPi zero w, the device will automatically change to use bt to communicate with other connected gadgets. Is it possible to do this?
Memory in C++ is a leaky abstraction .
Re: Is it possible to use both wifi & bt connection at the same time?
1. Just the general market product nowadays. It's because I want to create a product that can solve some limitations of the current market product. I want to keep the function simple (e.g. just turn on/ off the light bulbs), but can enhance the stability of the system.Heater wrote: ↑Wed Jan 31, 2018 9:45 pmwtshing,What IOT product do you mean?1. Will the iot market product become non-functionable if the Internet connection is lost (cannot connect to the their cloud)?
Certainly there are IOT devices that become useless if the manufacturer's servers goes away. It has happened many times already.No. The Raspberry Pi is not such a device. It's a general purpose computer. What it does is all up to you.2. Will the above problem exist for the Rpi products?I'm sure it's possible. You just have to configure/program it so.3. If I want to do a project that, if the WIFI connection is lost for my RPi zero w, the device will automatically change to use bt to communicate with other connected gadgets. Is it possible to do this?
2. This mean I can solve this limitations!
3. Do you know how to handle this? You can just give me the general method/ some useful posts if you can. I am just a newbie to RPi, thank you very much.
Once again, thanks.
Re: Is it possible to use both wifi & bt connection at the same time?
A bash script should be enough. I haven't worked with BT, but a simple bash test for wlan0 could be:
Code: Select all
WLAN=`ifconfig wlan0 | awk '/broadcast/ {print $2}'`; if [[ $WLAN != "" ]]; then echo "wlan0 is connected"; else echo "wlan0 is down"; fi
Headless PI. OMG, someone cut it's head off. Oh, hang on. it didn't have one to start with.
Re: Is it possible to use both wifi & bt connection at the same time?
Someone who grew up in the tropics asked whether ice skating was difficult to someone who grew up where the lakes are frozen. Likewise, someone who grew up where the lakes are frozen asked whether swimming was difficult to someone from the tropics.
If you learn something as a child, it does not seem difficult, especially if all the other children are doing it too. That is why computer literacy, in the sense of reading and writing computer programs, has been added to the school curriculum. If things go as planned, the answer to your question will be "programming is easy."