Manual mode not working under 0.5.0 compiled Firmware [SOLVED]

My electron is using 0.5.0-rc2 FW.
Whenever I compile a program with 0.4.8 the manual mode is working correctly.
When I compile the same program with either 0.5.0 or 0.5.0-rc2 my electron is never entering manual mode.
Is there a chance to enter manual mode with 0.5.0 or 0.5.0-rc2 code (as I would need some functions that are only available in 0.5.0+)

Thanks,
R

1 Like

What exactly is not working? I tried the code below with 0.5.0-rc2 and an Electron and manual mode appears to work for me. It breathes white until I press the button connected to D2, after which it goes through the normal connection process and then breathes cyan.

#include "Particle.h"

SYSTEM_MODE(MANUAL);

const int CONNECT_BUTTON = D2;
bool connectStarted = false;


void setup() {
	Serial.begin(9600);

	pinMode(CONNECT_BUTTON, INPUT_PULLUP);
}

void loop() {
	if (digitalRead(CONNECT_BUTTON) == LOW && !connectStarted) {
		connectStarted = true;
		Serial.println("Calling Particle.connect");
		Particle.connect();
	}

	if (Particle.connected()) {
		Particle.process();
	}
}
1 Like

Soved due to this post: Electron: U have a particle.connect() or cellular.connect() problem?