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.
Dependencies: C12832_lcd EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed
Diff: MBEDEndpoint.cpp
- Revision:
- 10:748fc7052e61
- Parent:
- 9:ff877db53cfd
- Child:
- 11:59ee476fda24
--- a/MBEDEndpoint.cpp Wed Feb 26 21:48:57 2014 +0000
+++ b/MBEDEndpoint.cpp Wed Feb 26 22:27:04 2014 +0000
@@ -34,6 +34,7 @@
// default constructor
MBEDEndpoint::MBEDEndpoint(ErrorHandler *error_handler,EthernetInterface *ethernet) {
+ this->m_ioc_id = -1;
bool success = true;
for(int i=0;i<NUM_TRANSPORTS;++i) this->m_transports[i] = NULL;
this->m_error_handler = error_handler;
@@ -57,6 +58,12 @@
if (success) this->logger()->turnLEDBlue();
}
+ // set the IOC ID
+ void MBEDEndpoint::setIOCID(int ioc_id) { this->m_ioc_id = ioc_id; }
+
+ // get the IOC ID
+ int MBEDEndpoint::getIOCID() { return this->m_ioc_id; }
+
// initialize the Lights
bool MBEDEndpoint::initializeLights() {
this->logger()->log("Initializing Lights...");