Version FC

Dependencies:   DmTftLibrary eeprom SX1280Lib filesystem mbed

Fork of MSNV2-Terminal_V1-5 by Francis CHATAIN

Revision:
19:4b147d8f9164
Parent:
18:d5e7e56b0a0d
Child:
20:b0281e8a375a
--- a/DataBase.cpp	Thu Aug 30 08:40:16 2018 +0000
+++ b/DataBase.cpp	Thu Aug 30 08:48:19 2018 +0000
@@ -57,13 +57,13 @@
      _BUFFER_SIZE_MAX,_TIMER );                              
 }
 
-short DataBase::getNbChannel(Channel::DEVICE_TYPE deviceType) {
+short DataBase::getNbService(Service::DEVICE_TYPE deviceType) {
     short result = 0;
 
-    std::vector<Channel*> channels = this->_payload->getChannels();
+    std::vector<Service*> channels = this->_payload->getServices();
 
-    for(std::vector<Channel*>::iterator it = channels.begin(); it != channels.end(); it++) {
-        Channel* channel = *it;
+    for(std::vector<Service*>::iterator it = channels.begin(); it != channels.end(); it++) {
+        Service* channel = *it;
         if (channel->getDeviceType() == deviceType) {
             result++;
         }
@@ -72,6 +72,6 @@
     return result;
 }
 
-Channel::DEVICE_TYPE DataBase::getChannelType (short channelRank) {
-    return this->_payload->getChannelByRank(channelRank)->getDeviceType();
+Service::DEVICE_TYPE DataBase::getServiceType (short channelRank) {
+    return this->_payload->getServiceByRank(channelRank)->getDeviceType();
 }