Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet mbed_nsp_endpoint_nxp
Revision 21:272df0444756, committed 2014-07-01
- Comitter:
- ansond
- Date:
- Tue Jul 01 19:29:55 2014 +0000
- Parent:
- 20:def10d2d9273
- Child:
- 22:0f2a0269ce6d
- Commit message:
- updates for cellular
Changed in this revision
| MBEDEndpoint.cpp | Show annotated file Show diff for this revision Revisions of this file |
| MBEDEndpoint.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MBEDEndpoint.cpp Tue Jul 01 04:21:14 2014 +0000
+++ b/MBEDEndpoint.cpp Tue Jul 01 19:29:55 2014 +0000
@@ -33,7 +33,7 @@
extern void closedown(int code);
// default constructor
- MBEDEndpoint::MBEDEndpoint(ErrorHandler *error_handler,void *transports,void *extra) : BaseClass(error_handler,NULL) {
+ MBEDEndpoint::MBEDEndpoint(ErrorHandler *error_handler,void *transport,void *extra) : BaseClass(error_handler,NULL) {
bool success = true;
this->m_preferences = NULL;
this->m_instance_id = 0;
@@ -56,11 +56,11 @@
this->m_cellular_modem = NULL;
this->m_gps = NULL;
this->logger()->log("initializing Cellular Modem...");
- if (success) success = this->initializeCellularModem(this->logger(),transports);
+ if (success) success = this->initializeCellularModem(transport);
//this->logger()->log("initializing GPS Receiver...");
//if (success) success = this->initializeGPSReceiver(this,extra);
#else
- if (success) success = this->initializeEthernet((EthernetInterface *)transports);
+ if (success) success = this->initializeEthernet((EthernetInterface *)transport);
#endif
if (success) this->logger()->turnLEDYellow();
this->logger()->log("initializing transports...");
@@ -211,7 +211,7 @@
}
#ifdef CELLULAR_NETWORK
- bool MBEDEndpoint::initializeCellularModem(void *transport,void *modem) {
+ bool MBEDEndpoint::initializeCellularModem(void *modem) {
bool success = false;
// initialize
--- a/MBEDEndpoint.h Tue Jul 01 04:21:14 2014 +0000
+++ b/MBEDEndpoint.h Tue Jul 01 19:29:55 2014 +0000
@@ -90,7 +90,7 @@
bool closeTransports();
#ifdef CELLULAR_NETWORK
- bool initializeCellularModem(void *transport,void *modem);
+ bool initializeCellularModem(void *modem);
bool initializeGPSReceiver(void *gps);
bool closeCellularModem();
bool closeGPSReceiver();