openc3-cosmos-demo 5.4.3.pre.beta0.20230214173509 → 5.5.0.pre.beta0.20230217010435

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abb4e80075920cc2550ee2b75b3e68ca3ef9541d0401be4f96eed51d39ec7f20
4
- data.tar.gz: 4ff9a3bca21d2ba3ff763cc158d9939d026235c02c78ffe47fec509f03cc6f80
3
+ metadata.gz: 25e7b018ee3218db7470c473fbfa478e499ccb7fea02feb4894ce150240749bf
4
+ data.tar.gz: df9620b6b1e3031feb2a0719e66c994b765089d8b2cdc9eaf131b8e3124a4028
5
5
  SHA512:
6
- metadata.gz: 345bfa8a16dc339ba4b321e253426e6ad71b115550d74dd0942f30e28ab6eb2403b633fbbfa729fe2d69674117eb0ad0f39da49f2deaa27be0303861893fbc52
7
- data.tar.gz: f509593f17844560c4526ef0ea9c3c64ee9dc75be207f35c2025459fea8b07ea78eec64b82dcbdbe46c22d75df91a975e48c636706cc44135c6f8529b0919d34
6
+ metadata.gz: 8ffafefc810f0ac537011e8c359389c0c76ad6272fb136a87e0b34040650b7b0158500414bffb671872d5071e4b6e8c6a5bc77d1fa9dc0320ad16553aed8160c
7
+ data.tar.gz: 5eec9a7aa5522ed86bc4113801b1458bbe0e7acd77497a6b59dc710ff8d2ba7da10ea4b02ff3f5f16e61b34d7ce6988bc642a256aa15e90c3df4571e2e9913ed
@@ -0,0 +1,15 @@
1
+ OpenC3::StreamingWebSocketApi.new do |api|
2
+ api.add(items: ['DECOM__TLM__INST__HEALTH_STATUS__TEMP1__CONVERTED', 'DECOM__TLM__INST__HEALTH_STATUS__TEMP2__CONVERTED'])
3
+ 5.times do
4
+ puts api.read
5
+ end
6
+ api.remove(items: ['DECOM__TLM__INST__HEALTH_STATUS__TEMP1__CONVERTED'])
7
+ 5.times do
8
+ puts api.read
9
+ end
10
+ end
11
+
12
+ # Warning this saves all data to RAM. Do not use for large queries
13
+ data = OpenC3::StreamingWebSocketApi.read_all(items: ['DECOM__TLM__INST__HEALTH_STATUS__TEMP1__CONVERTED', 'DECOM__TLM__INST__HEALTH_STATUS__TEMP2__CONVERTED'], end_time: Time.now + 10)
14
+ puts data.length
15
+ puts data[0].inspect