Enviar coordenadas GPS a smartphone vía GSM y simular encendido y apagado del vehículo

Dependencies:   GPS7 mbed

Fork of GPS_7 by Gustavo Ramirez

main.cpp

Committer:
tony63
Date:
2014-10-20
Revision:
1:99bb5d61015f
Parent:
0:6b7345059afe
Child:
2:5abd8a794703

File content as of revision 1:99bb5d61015f:

#include "mbed.h"
#include "GPS.h"

Serial pc(USBTX, USBRX);
GPS gps(PTE22, PTE23);

int main() {
    while(1) {
        if(gps.sample()) {
            pc.printf("I'm at %f, %f\n", gps.longitude, gps.latitude);
        } else {
            
            pc.printf("Oh Dear! No lock :(\n");
        }
    }
}