I have a new and fully tested Electron plugged into the Asset Tracker project board and I'm trying to compile and download the supplied software in the Asset Tracker library. I've tried both the Web IDE and Dev with compile errors. Yes, I can get the Asset Tracker library linked with with my .ino file.
Question: Should I be able to get this project working using the Web IDE?
Here is my process using the Web IDE:
First, using the library I see 4 programs listed: 1_GPS_Features.cpp, 2_Accelerometer.cpp, AssetTracker.cpp and AssetTracker.h. I am assuming AssetTracker.cpp is the main program so I copy/pasted it into my project .ino file I named LR_AssetTracker. Next I link the library to the project file LR_AssetTracker.ino. I can see the indicator of the addition of the library. Also, I can see the #include AssetTracker/AssetTracker.h added to the .ino file. When I compile I get an error mesage that it can't find AssetTracker/AssetTracker.h. So, I changed the include to simply AssetTracker.h and compile again. I no longer complains it can't find the include file but I get this:
lr_assettracker.cpp: In member function 'void AssetTracker::updateGPS()':
lr_assettracker.cpp:82:10: warning: unused variable 'c' [-Wunused-variable]
char c = gps.read();
^
In file included from lr_assettracker.cpp:2:0:
AssetTracker/AssetTracker.h: In constructor 'Adafruit_LIS3DH::Adafruit_LIS3DH()':
AssetTracker/AssetTracker.h:481:29: warning: 'Adafruit_LIS3DH::_sck' will be initialized after [-Wreorder]
int8_t _cs, _mosi, _miso, _sck;
^
AssetTracker/AssetTracker.h:477:11: warning: 'int32_t Adafruit_LIS3DH::_sensorID' [-Wreorder]
int32_t _sensorID;
^
lr_assettracker.cpp:658:1: warning: when initialized here [-Wreorder]
@brief Instantiates a new LIS3DH class in I2C or SPI mode
^
In file included from lr_assettracker.cpp:2:0:
AssetTracker/AssetTracker.h: In constructor 'Adafruit_LIS3DH::Adafruit_LIS3DH(int8_t)':
AssetTracker/AssetTracker.h:481:29: warning: 'Adafruit_LIS3DH::_sck' will be initialized after [-Wreorder]
int8_t _cs, _mosi, _miso, _sck;
^
AssetTracker/AssetTracker.h:477:11: warning: 'int32_t Adafruit_LIS3DH::_sensorID' [-Wreorder]
int32_t _sensorID;
^
lr_assettracker.cpp:663:1: warning: when initialized here [-Wreorder]
: _cs(-1), _mosi(-1), _miso(-1), _sck(-1), _sensorID(-1)
^
In file included from lr_assettracker.cpp:2:0:
AssetTracker/AssetTracker.h: In constructor 'Adafruit_LIS3DH::Adafruit_LIS3DH(int8_t, int8_t, int8_t, int8_t)':
AssetTracker/AssetTracker.h:481:29: warning: 'Adafruit_LIS3DH::_sck' will be initialized after [-Wreorder]
int8_t _cs, _mosi, _miso, _sck;
^