GPRS: Remove Grove Dependency

Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
Abhishek Malik
2016-09-13 12:12:50 -07:00
committed by Noel Eck
parent f4315db035
commit db05211516
11 changed files with 52 additions and 52 deletions

View File

@ -213,7 +213,7 @@ add_example (loudness)
add_example (mg811)
add_example (wheelencoder)
add_example (sm130)
add_example (grovegprs)
add_example (gprs)
add_example (lm35)
add_example (micsv89)
add_example (xbee)

View File

@ -26,7 +26,7 @@
#include <iostream>
#include <signal.h>
#include <stdio.h>
#include "grovegprs.hpp"
#include "gprs.hpp"
using namespace std;
using namespace upm;
@ -48,7 +48,7 @@ void printUsage(char *progname)
}
// simple helper function to send a command and wait for a response
void sendCommand(upm::GroveGPRS* sensor, string cmd)
void sendCommand(upm::GPRS* sensor, string cmd)
{
// commands need to be terminated with a carriage return
cmd += "\r";
@ -71,8 +71,8 @@ int main(int argc, char **argv)
{
//! [Interesting]
// Instantiate a GroveGPRS Module on UART 0
upm::GroveGPRS* sensor = new upm::GroveGPRS(0);
// Instantiate a GPRS Module on UART 0
upm::GPRS* sensor = new upm::GPRS(0);
// Set the baud rate, 19200 baud is the default.
if (sensor->setBaudRate(19200) != mraa::SUCCESS)
@ -108,4 +108,4 @@ int main(int argc, char **argv)
delete sensor;
return 0;
}
}