コード例 #1
0
void ATTDevice::writeCommand(const char* command, String& param1, String& param2)
{
    _stream->print(command);
    _stream->print(";");
    sendParam(param1);
    _stream->print(";");
    sendParam(param2);
    _stream->println();
}
コード例 #2
0
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);
	}
}
コード例 #3
0
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;
	}
}
コード例 #4
0
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??!";
		}
	}
}