Method: OpenC3::InterfaceTopic.interface_cmd
- Defined in:
- lib/openc3/topics/interface_topic.rb
.interface_cmd(interface_name, cmd_name, *cmd_params, scope:) ⇒ Object
82 83 84 85 86 87 |
# File 'lib/openc3/topics/interface_topic.rb', line 82 def self.interface_cmd(interface_name, cmd_name, *cmd_params, scope:) data = {} data['cmd_name'] = cmd_name data['cmd_params'] = cmd_params Topic.write_topic("{#{scope}__CMD}INTERFACE__#{interface_name}", { 'interface_cmd' => JSON.generate(data, allow_nan: true) }, '*', 100) end |