mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 01:11:10 +03:00
GPRS: Remove Grove Dependency
Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user