When we use the term Deprecated, we mean that you can no longer purchase the device, and there will no new features. While Device OS 4.x and 5.x do not support the Electron (or the Photon), you can still use them with 2.x and 3.x, and cloud support is still available.
On the other hand, if you have an Electron U260, live in the United States, and do not have T-Mobile coverage, then you are stuck since AT&T has stopped providing any 2G or 3G service.
And yes, you can plug the Photon into Electron AssetTracker shield.
Hi Rick,
Thank you for your quick and informative response. I am in the US and where I am the T-Mobile coverage is weak.
FYI:
I just tried with the Photon installed in the Asset Tracker Shield. I can get it to work using the Tiny GPS ++ library, but with the Particle standard test code named āAT_GPS_Features.inoā that has the Adafruit code included I get a compile error that seems to be a problem with the code in the Adafruit library.
It seems to be in the āAdafruit_LIS3DH.cppā accelerometer section. (It compiles with the Electron as the device but not the Photon)
If you have any insights or can help that would be great.
Thanks again.
Here is a snapshot of the error:
Compile of AT_GPS_Features.ino
Error:
lib/Adafruit_LIS3DH/Adafruit_LIS3DH.cpp:320:1: no return statement in function returning non-void [-Werror=return-type]
Details (RAW):
lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.h: In constructor āAdafruit_LIS3DH::Adafruit_LIS3DH()ā:
lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.h:233:29: warning: āAdafruit_LIS3DH::_sckā will be initialized after [-Wreorder]
233 | int8_t _cs, _mosi, _miso, _sck;
| ^~~~
lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.h:229:11: warning: āint32_t Adafruit_LIS3DH::_sensorIDā [-Wreorder]
229 | int32_t _sensorID;
| ^~~~~~~~~
lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.cpp:40:1: warning: when initialized here [-Wreorder]
40 | Adafruit_LIS3DH::Adafruit_LIS3DH()
| ^~~~~~~~~~~~~~~
In file included from lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.cpp:31:
lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.h: In constructor āAdafruit_LIS3DH::Adafruit_LIS3DH(int8_t)ā:
lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.h:233:29: warning: āAdafruit_LIS3DH::_sckā will be initialized after [-Wreorder]
233 | int8_t _cs, _mosi, _miso, _sck;
| ^~~~
lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.h:229:11: warning: āint32_t Adafruit_LIS3DH::_sensorIDā [-Wreorder]
229 | int32_t _sensorID;
| ^~~~~~~~~
lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.cpp:45:1: warning: when initialized here [-Wreorder]
45 | Adafruit_LIS3DH::Adafruit_LIS3DH(int8_t cspin)
| ^~~~~~~~~~~~~~~
In file included from lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.cpp:31:
lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.h: In constructor āAdafruit_LIS3DH::Adafruit_LIS3DH(int8_t, int8_t, int8_t, int8_t)ā:
lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.h:233:29: warning: āAdafruit_LIS3DH::_sckā will be initialized after [-Wreorder]
233 | int8_t _cs, _mosi, _miso, _sck;
| ^~~~
lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.h:229:11: warning: āint32_t Adafruit_LIS3DH::_sensorIDā [-Wreorder]
229 | int32_t _sensorID;
| ^~~~~~~~~
lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.cpp:49:1: warning: when initialized here [-Wreorder]
49 | Adafruit_LIS3DH::Adafruit_LIS3DH(int8_t cspin, int8_t mosipin, int8_t misopin, int8_t sckpin)
| ^~~~~~~~~~~~~~~
lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.cpp: In member function āvirtual bool Adafruit_LIS3DH::getEvent(sensors_event_t*)ā:
lib/Adafruit_LIS3DH/src/Adafruit_LIS3DH.cpp:320:1: error: no return statement in function returning non-void [-Werror=return-type]
320 | }
| ^
cc1plus: some warnings being treated as errors
make[2]: *** [ā¦/build/target/user/platform-6-mAdafruit_LIS3DH/src/Adafruit_LIS3DH.o] Error 1
make[2]: Leaving directory `/firmware/userā
make[1]: *** [user] Error 2
I would switch to using the AssetTrackerRK library. It works much better than the official library and also compiles on recent versions of Device OS. Itās based on TinyGPS++.