void ATTDevice::writeCommand(const char* command, String& param1, String& param2) { _stream->print(command); _stream->print(";"); sendParam(param1); _stream->print(";"); sendParam(param2); _stream->println(); }
void ofxRemoteUI::sendUpdateForParamsInList(vector<string>list){ for(int i = 0; i < list.size(); i++){ RemoteUIParam p = params[list[i]]; //cout << "ofxRemoteUIServer: sending updated param " + list[i]; p.print(); sendParam(list[i], p); } }
void ofxRemoteUIClient::sendTrackedParamUpdate(string paramName){ map<string,RemoteUIParam>::iterator it = params.find(paramName); if ( it != params.end() ){ syncParamToPointer(paramName); sendParam(paramName, params[paramName]); }else{ cout << "ofxRemoteUIClient::sendTrackedParamUpdate >> param '" + paramName + "' not found!" << endl; } }
void ofxRemoteUI::sendUpdateForParamsInList(vector<string>list){ for(int i = 0; i < list.size(); i++){ string name = list[i]; unordered_map<string, RemoteUIParam>::const_iterator it = params.find(name); if(it!=params.end()){ RemoteUIParam p = params[list[i]]; //cout << "ofxRemoteUIServer: sending updated param " + list[i]; p.print(); sendParam(list[i], p); }else{ RUI_LOG_ERROR << "param not found??!"; } } }