Skip to content

SIM908 Simple Client to control GPS and GPRS modes of DFRobot GPS/GPRS/GSM Module V3.0

License

Notifications You must be signed in to change notification settings

ArthurJahn/SIM908Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIM908Client

SIM908 Simple Client to control GPS and GPRS modes of DFRobot GPS/GPRS/GSM Module V3.0

Usage

Import SIM908Client to your Arduino porject and:

  • Create a SIM908Client

    SIM908Client simClient(0,1,5,4,3);
    
  • Setup your client

    //starting client with baud rate 9600
    simClient.begin(9600);
    
    //starting GPS module
    simClient.startGPS();
    
    //attaching GPRS network and creating a web connection
    simClient.attach(apn,usr,psw);
    

    After this you will be able to use gps location and internet, if you provide valid values for apn, usr and psw.

  • call getGPS to retrieve location

  //get current location
  simClient.getGPS();
  • Follow the provided example to use MQTT over the provided internet connection, and to send location over the socket.

Note: the example shows only the client side of the MQTT conn. We used a configured Mosquitto Broker to provide the infrastructure to interconnect multiple clients. The SisAFA project provides a more complete example about configuring a Broker and creating a mobile app to retrieve location info via MQTT.

Contributing

If you want to contribute to this project:

  • Report bugs and errors
  • Ask for enhancements
  • Create issues and pull requests
  • Tell other people about this library

About

SIM908 Simple Client to control GPS and GPRS modes of DFRobot GPS/GPRS/GSM Module V3.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages