Running w/o Particle Cloud

I see from previous posts that it is possible to run without the Particle Cloud, and still participate on a local WiFi network.

My setup is a little different in that occasionally my Argon will have full internet access, however, most of the time it does not.

I run the Argon with SYSTEM_THREAD(ENABLED) and SYSTEM_MODE(AUTOMATIC); I don't do any manual WiFi connections (although I do loads of Blue Tooth operations).

The Argon is responsible for measuring 3 x A/D inputs (potentiometers) at 1kHz and based on these measurements for communicating with and controlling 3 x BLE dimming devices. As one can imagine for smooth dimmer operation the Argon needs to be responsive.

Can someone tell me if start with Internet access (I've tested this extensively) if I drop Internet access, will the Argon become less responsive? For example, will it get stuck in trying to connect to the Cloud from time to time and therefore starve the sample and control function? (i.e the background loop; the sampling runs in ISR)

Unfortunately, I can't test this now since I'm no longer close to the installation site. Was hoping someone could tell me and maybe give me some pointers on what to do during times with no connection to the internet.

Anything that uses the cloud from the loop thread could cause the loop to be blocked for a period of time.

What I would first try is putting your potentiometer reading and BLE sending code into a separate worker thread. This will almost certainly solve the problem.

For testing of things like this I used an older model of the TP-LINK AC750. It's sold as a portable travel router, but I use it so I can disrupt the Wi-Fi or the backhaul to the Internet without affecting the rest of my network.

1 Like

Rick,

Edit: Sorry - never mind my added question. I see you’ve answered before. Really sorry about that :frowning:

Thanks for the feedback. I will put that function in a worker thread. Is it OK to do Blue Tooth coms in there too? Or should that be done in the loop().

As for the router, that’s a great idea. I was planning on yanking the Ethernet cable from my mesh to my modem for testing. Now I don’t have to be yelled at by the «boss». :slight_smile:

Yes, you can use BLE from a worker thread.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.