Class: OpenC3::AutonomicTopic

Inherits:
Topic show all
Defined in:
lib/openc3/topics/autonomic_topic.rb

Constant Summary collapse

PRIMARY_KEY =
"__openc3_autonomic"

Class Method Summary collapse

Methods inherited from Topic

clear_topics, get_cnt, method_missing

Class Method Details

.write_notification(notification, scope:) ⇒ Object

Notify to the topic

 {
   "kind" => "created",
   "type" => "trigger",
   "data" => {
     "name" => "foobar",
     "target": "INST",
     "packet": "ADCS",
     "left": {
       "type": "item",
       "item": "POSX",
     },
     "operation": ">",
     "right": {
       "type": "value",
       "value": 690000,
     }
   }
 }


51
52
53
# File 'lib/openc3/topics/autonomic_topic.rb', line 51

def self.write_notification(notification, scope:)
  Topic.write_topic("#{scope}#{PRIMARY_KEY}", notification, '*', 1000)
end