Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
XanderRadio

accessing components over separate networks

Question

i have components attached to one computer and i want to interact with them from a different computer using network messages.

would it be possible to have network  message names correspond to specific components and have the network message contents be treated as the command for the component?

for instance if the message name was "reactor" and the message contents was ".getReactorInfo().temperature",  it would be run on the receiving computer as if i typed "reactor.getReactorInfo().temperature" in a lua terminal and it would send the output back to  the computer i sent the message from.

would that work? if so, how would i go about doing it?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Think it would be much easier to give "trigger" messages to the other computers inside a table, like with maybe "message.block", "message.command", where message.block sets the computer that listens to this blockname and will run the command given in "message.command". like maybe:

message ={ block = "reactor",
	 command = "temp",}

the listening computer at the reactor would listen for "if message.block == "reactor" and would get the info if  message.command is == "temp", then it would create a new 'message-table' with the info inside to send back. I would go for something like this.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.