NodeMCU as a microcontroller only - WIFI lost

Hi everyone,

I have a NodeMCU monitoring a EDM machine. Cayenne works great. I record the time machine is running and I receive warnings on my email about faults and etc. However, I connected a flame sensor on my A0 channel where it activates a fire extinguisher. The problem is that it doesn’t work without WIFI, even though this piece of code is outside “Cayenne.loop()”.

Is there any way I can isolate this logic from the internet and allow my NodeMCU to work only as a microcontroller? But I still want to keep my other triggers through Cayenne.

Thank you.

cayenne does not support offline feature and when connection is lost it loops trying to get connection back.

@mcoutinh13,

The Cayenne bits can be broken up so the attempt to connect is part of the main loop and times out if no wifi is available. I’ve seen it done on here before when we were using Blynk libs. I’m sure that can be adapted.

I’ll see what I can do on the weekend.

Cheers,

Craig