'Cellular' was not declared in this scope

Why does this simple code

void setup() {
boolean localIP = Cellular.ready();

void loop() {


give me this error?

test.cpp:3:21: error: ‘Cellular’ was not declared in this scope
void setup();

I was sure that I had this working previously. How do I declare Cellular? My devices in the build.particle environ are electron. Wifi stuff will compile but not cellular.


Be sure to :star: an electron under the devices tab before compilation.

1 Like

Thanks. That was too obvious. I feel like an idiot.

No worries man :wink: