Messaging domain problem, "string" != "string"
            
                
                    Laro88                
                
                     ✭                
            
                        
                
                                    
                                  in RobotStudio             
            
                    The error basically says that "string" != "string" - which makes me wonder what is going on 

                
                

0  
            Comments
- 
            
I just altered the code to use "num" as the datatype and it works when altering the datatype in the IRC5 code to num...
C# looks like this ( the commented s definition works )
string s = "string;"+ value; //value is of type string
//string s = "num;1"; //Tx of numbers works
msg.SetData(new System.Text.UTF8Encoding().GetBytes(s));
msg.UserDef = ID;
msg.Sender = ipcQueue_ToRAP.QueueId;
ipcQueue_ToRAP.Send(msg);
Laro882009-11-10 13:20:560 - 
            Problem solved, misleading error message

Strings must be wrapped in " so the string to be send should look like this:string s = "string;""+ value+""";
The string != string error is misleading, it should say something like
"illegal string wrapping or termination"
0 - 
            Can't understand how to send strings via RMQ messaging. I can send only like this, but I need to send different strings:
Byte[] data = new UTF8Encoding().GetBytes("string;\"hello world\"");
For me it doesn't work.Laro88 said:Problem solved, misleading error message
Strings must be wrapped in " so the string to be send should look like this:string s = "string;""+ value+""";

0 - 
            Hello,You don't escape well ".You're near on comments:Byte[] data = new UTF8Encoding().GetBytes("string;\"" + strMsg + "\"");This create a string = (string;"Your Message").☑️2024 - RobotStudio® User Group1
 
Categories
- All Categories
 - 5.6K RobotStudio
 - 401 UpFeed
 - 21 Tutorials
 - 15 RobotApps
 - 306 PowerPacs
 - 407 RobotStudio S4
 - 1.8K Developer Tools
 - 250 ScreenMaker
 - 2.9K Robot Controller
 - 363 IRC5
 - 81 OmniCore
 - 8 RCS (Realistic Controller Simulation)
 - 853 RAPID Programming
 - 31 AppStudio
 - 4 RobotStudio AR Viewer
 - 19 Wizard Easy Programming
 - 110 Collaborative Robots
 - 5 Job listings
 
