Hello all,
Currently I am having an issue of my Xenon attempting to connect to the cloud or some other network when the system is set to be in an offline state. Let me explain the setup and contingencies for this project. An Argon and Xenon have been setup on a network where there is access to the cloud and they function properly. Eventually, this system will be moved to a managed network where the Argon will not be able to access the cloud, but managed WiFi access is available. This WiFi will be used by the npt-time library in order to provide accurate time for the project. The issue that I am running into is when I configure the Argon to only use wifi and not connect to the cloud (SYSTEM_MODE(SEMI_AUTOMATIC), WiFi.on(), WiFi.connect(), Mesh.on()) along with the Xenon only using mesh (Mesh.on(), Mesh.connect()) the Xenon upon startup flashes green slowly then flashes green rapidly and remains that way, thus halting the entire program. I searched through documentation and I assume the rapid green flash means that it is attempting to connect to the wifi or other network, or finalizing the mesh connection. I’ve looked at a lot of articles in this board regarding Xenon in an offline state, but none of them seem to work. The code on the Argon works perfectly and delivers the intended result. I have included a simple code below that gives the same result.
Argon:
#include <ntp-time.h>
NtpTime* ntpTime;
SYSTEM_MODE(SEMI_AUTOMATIC);
SYSTEM_THREAD(ENABLED);
void setup() {
WiFi.on();
WiFi.connect();
Mesh.on();
ntpTime = new NtpTime(60);
ntpTime->start();
}
void loop() {
//Time Variables
struct epochMillis now; //holds the unix epoch time to millisecond resolution
ntpTime->nowMillis(&now); //get the current NTP time
}
Xenon:
SYSTEM_MODE(SEMI_AUTOMATIC);
void setup() {
Mesh.on();
Mesh.connect();
}
void loop() {
}
Thank you for any help!