GPS tracker code documentation
 All Classes Files Functions Variables Macros Pages
Functions
gps.c File Reference

GPS functions implementations. More...

#include <string.h>
#include <stdio.h>
#include "gps.h"
Include dependency graph for gps.c:

Functions

uint8_t enable_gps ()
 enables the GPS functionality of the SIM808 module More...
 
uint8_t get_gps_location (char *coordinates)
 checks if the module has a GPS fix, if yes, it querries the GPS module for the current position. The format of the output is longitude,latitude Example: 3937.656010,1406.059400 More...
 

Detailed Description

GPS functions implementations.

Author
Mohamed Boubaker

Function Documentation

uint8_t enable_gps ( )

enables the GPS functionality of the SIM808 module

Returns
1 if the GPS is successfully enabled, 0 otherwise

Here is the call graph for this function:

uint8_t get_gps_location ( char *  position)

checks if the module has a GPS fix, if yes, it querries the GPS module for the current position. The format of the output is longitude,latitude Example: 3937.656010,1406.059400

Parameters
coordinatesis an array that will store the GPS position.
Returns
1 if the GPS position is calculated correctly, 0 if the module doesn't have a fix or an error occurs.

Here is the call graph for this function: