Guest User

Untitled

a guest
Oct 16th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1. Telegram *knxDevice::createcharTelegramFromAddress(char data, int addressnumber)
  2.     {
  3.     [...not relevant, works for a long time...]
  4.     }
  5.  
  6.  
  7. virtual vector<Telegram *> Command_Set_Color(int R, int G, int B){
  8.     vector<Telegram *> commands;
  9.     Telegram *toto;
  10.     commands.reserve(3);
  11.     toto = createcharTelegramFromAddress(R,1);
  12.     commands.push_back(toto);
  13.     return commands;
  14.     };
  15.  
  16. void EIB::ReceivedCommandForChild(DeviceData_Impl *pDeviceData_Impl,string &sCMD_Result,Message *pMessage)
  17.     {
  18.     Telegram *ptel=NULL;
  19.     vector<Telegram *> ftel;
  20.    
  21.     [... not relevant...]
  22.  
  23.     int i=0;
  24.     int j=ftel.size();
  25.     for(i=0; i < j; i++)
  26.         {
  27.         ptel = ftel[i];
  28.         LoggerWrapper::GetInstance()->Write(LV_STATUS, "Source: %s",Telegram::paddrtostring(ptel->getSrcAddress()).c_str());
  29.         sendTelegram(ptel);
  30.         delete(ptel);
  31.         }
  32.     ftel.clear();
  33.     };
Add Comment
Please, Sign In to add comment