Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: MBEDToIOCResourceMap.cpp
- Revision:
- 11:f1c9299a3ca1
- Parent:
- 10:62107616fc6c
- Child:
- 12:9af48d60705f
--- a/MBEDToIOCResourceMap.cpp Tue Feb 25 07:33:45 2014 +0000 +++ b/MBEDToIOCResourceMap.cpp Tue Feb 25 16:33:18 2014 +0000 @@ -34,9 +34,9 @@ char *mbed_name = NULL; for(int i=0;i<this->m_map.size() && !found;++i) { - if (strcmp(this->m_map.at(i).iocName(),ioc_name) == 0) { + if (strcmp(this->m_map[i]->iocName(),ioc_name) == 0) { found = true; - mbed_name = this->m_map.at(i).mbedName(); + mbed_name = this->m_map[i]->mbedName(); } } return mbed_name; @@ -44,5 +44,20 @@ // create our map - this MUST match the Resource Mapping found in the gateway mapping database void MBEDToIOCResourceMap::createMap() { - + this->m_map.push_back(new MapEntry("Property_1","/dev/addldata")); + this->m_map.push_back(new MapEntry("Property_2","/dev/location")); + this->m_map.push_back(new MapEntry("Property_3","/dev/bat")); + this->m_map.push_back(new MapEntry("Property_4","/sen/I")); + this->m_map.push_back(new MapEntry("Property_5","/nw/ipaddr")); + this->m_map.push_back(new MapEntry("Property_6","/lt/0/dim")); + this->m_map.push_back(new MapEntry("Property_7","/nw/eripaddr")); + this->m_map.push_back(new MapEntry("Property_8","/lt/0/on")); + this->m_map.push_back(new MapEntry("Property_9","/dev/mdl")); + this->m_map.push_back(new MapEntry("Property_10","/gps/int")); + this->m_map.push_back(new MapEntry("Property_11","/gps/fix")); + this->m_map.push_back(new MapEntry("Property_12","/nw/pipaddr")); + this->m_map.push_back(new MapEntry("Property_13","/nw/prssi")); + this->m_map.push_back(new MapEntry("Property_14","/sen/temp")); + this->m_map.push_back(new MapEntry("Property_15","/sen/V")); + this->m_map.push_back(new MapEntry("LOCATION","/gps/loc")); } \ No newline at end of file