Turn ON/OFF WIFI with button and work via bluetooth?


#1

Hello everyone,
I have a doubt I have a photon particle with a bluetooth HC-05 to the serial port. My doubt:
It is possible to off / on the WIFI with a button in a digital input and that the program works normally without cloud The problem is when it does not connect to WIFI the bluetooth does not work well


#2

do you have a red bear duo device or a photon device?


#3

Have a look at system modes and system threading in the docs. That’s most likely what you’re looking for.


#4

@dkryder, you are most likely running in SYSTEM_AUTOMATIC mode which will prevent your code from running until a Particle Cloud connection is made. Is this the case?


#5

photon particle


#6

something like this, I can not use the bluetooth if my wifi does not have good connection, so I will turn it off and send data by bluetooth and then turn it on again.