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_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp
Diff: MBEDEndpoint.cpp
- Revision:
- 23:34086bc15b02
- Parent:
- 19:194cdc5e5a1e
- Child:
- 24:e706feda4970
--- a/MBEDEndpoint.cpp Wed Apr 02 02:30:33 2014 +0000 +++ b/MBEDEndpoint.cpp Wed Apr 02 04:35:41 2014 +0000 @@ -37,7 +37,7 @@ extern void closedown(int code); // default constructor - MBEDEndpoint::MBEDEndpoint(ErrorHandler *error_handler,void *ethernet) : BaseClass(error_handler,NULL) { + MBEDEndpoint::MBEDEndpoint(ErrorHandler *error_handler,void *transport,void *pinouts) : BaseClass(error_handler,NULL) { bool success = true; this->m_instance_id = 0; this->m_preferences = NULL; @@ -61,10 +61,10 @@ #ifdef CELLULAR_NETWORK this->m_cellular_modem = NULL; this->m_gps = NULL; - if (success) success = this->initializeCellularModem(); + if (success) success = this->initializeCellularModem(transport,pinouts); if (success) success = this->initializeGPSReceiver(); #else - if (success) success = this->initializeEthernet((EthernetInterface *)ethernet); + if (success) success = this->initializeEthernet((EthernetInterface *)transport); #endif if (success) this->logger()->turnLEDYellow(); if (success)this->m_map = new MBEDToIOCResourceMap(error_handler); @@ -230,11 +230,11 @@ } #ifdef CELLULAR_NETWORK - bool MBEDEndpoint::initializeCellularModem() { + bool MBEDEndpoint::initializeCellularModem(void *transport,void *pinouts) { bool success = false; // initialize - if (this->m_cellular_modem == NULL) this->m_cellular_modem = new MBEDUbloxCellRadio(this->logger(),this); + if (this->m_cellular_modem == NULL) this->m_cellular_modem = new MBEDUbloxCellRadio(this->logger(),this,(UBLOX_MODEM *)transport,(C027 *)pinouts); if (this->m_cellular_modem != NULL) success = this->m_cellular_modem->connect(); // return our status