Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I send and receive user-defined information? #168

Open
jeungyeop10 opened this issue Jul 12, 2022 · 2 comments
Open

How do I send and receive user-defined information? #168

jeungyeop10 opened this issue Jul 12, 2022 · 2 comments

Comments

@jeungyeop10
Copy link

How do I send and receive user-defined information?

Can you send and receive information other than the defined message?

For example, equipment A transmits the information "abcd" to the customer's system, What should the customer's system do when it tries to transmit the information "1234" to Equipment A?

@Siox0911
Copy link
Contributor

In principle, you can abuse CFX for this. Nevertheless, one should try to stick to the standard. Why? Well, if an image on the Internet is an audio file, then it's no longer an image. Not every application will then understand the image and many will even interpret it as an error. This does not lead to the goal. This is how CFX created a standard. So the goal is not to circumvent the standard, but to apply the machines and systems to it. This requires a little rethinking, but leads to the goal.

@Siox0911
Copy link
Contributor

Siox0911 commented Jul 25, 2022

For example you can abuse Recipe for everything.

           //sender sends
            var recipeRequest = new CFX.Production.GetRecipeRequest
            {
                RecipeName = "abcd"
            };
           
           //receiver sends
            var recipeResponse = new CFX.Production.GetRecipeResponse
            {
                Result = new CFX.Structures.RequestResult { Result = CFX.Structures.StatusResult.Success },
                Recipe = new CFX.Structures.Recipe { RecipeData = Encoding.ASCII.GetBytes("1234") }
            };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants