Electron: cellular functions don't compile anymore [solved]

Hi guys

I have been using the the following cellular commands for weeks now but suddenly today they do not compile anymore.

#include "cellular_hal.h"
STARTUP(cellular_credentials_set("vmc.gprs.is", "", "", NULL));

void setup()

void loop() 
   CellularSignal sig = Cellular.RSSI();
   sign = map(sig.rssi, -113, -51, 0, 100);

The error I’m getting is “‘CellularSignal’ was not declared in this scope”.
Does anyone else experience this ?

This is usually caused by not having the target device set to be an Electron.

Depending on which compiler flow you are using the way out is different.

1 Like

That’s right. I removed an Electron and had no device selected.