Asset Tracker Accelerometer + GPS problem

Thanks for the tag @kennethlimcp! Hiya @johncohn, if that’s having issues it’s probably my fault- I put together the library. gpsOn() shouldn’t cause issues for the accel, but you never know. Could you paste in the rest of your code?

You can also check out @Dave’s awesome library- https://github.com/dmiddlecamp/fancy-asset-tracker

Here’s what’s in gpsOn(), for reference:

void AssetTracker::gpsOn(){
    // Power to the GPS is controlled by a FET connected to D6
    pinMode(D6,OUTPUT);
    digitalWrite(D6,LOW);
    gps.begin(9600);
    gps.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA);
    delay(500);
    // Default is 1 Hz update rate
    gps.sendCommand(PMTK_SET_NMEA_UPDATE_1HZ);
    delay(500);    
    gps.sendCommand(PGCMD_NOANTENNA);
    delay(500);
}