meshtastic 0.0.92 → 0.0.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8e14ca67dbf733e67099cbaeff1fa0701fbf243f05394cf47d1c8885edc3ab9
4
- data.tar.gz: 53c05ea7e4a306950c7e846286b1daa680fd041b84128b35179ca717b6d941b6
3
+ metadata.gz: 46a33e93e154c3ed4c22aec4e254a23e2e6694f69262a70e9990c2f4f44e34fb
4
+ data.tar.gz: 8a6f2f3215f52fa4ddbf9149b60383124a8119de431acf5a5a76482b2dab6202
5
5
  SHA512:
6
- metadata.gz: 8d581ea50a5a5c24d402aa2e17552ef1703687be9fb147ea3dc58689f7bdcb0c5a1a0257a15c269b0f49b734b6cb4cab3a1a6881940b01cb3d8383d3d8d7c02b
7
- data.tar.gz: af974f9ed09f5fb94414ef2721d480726385f463e5c7c838c65dd0112b860318b72d2966cc20eff9337642277d95918d144fb0c9200f2df9daa1d631b9ec23d6
6
+ metadata.gz: 1a98ccb2b75b32a87fb5194e48aa93360f04b9c672a146da0d1dfeccf31b625131254e1326b7027d5d982252739e8c1abdd75c1e97e975c404248d9dff6a728c
7
+ data.tar.gz: 900a7dbd08e07f9fe778c9b517de277a83a7f43c033917778cd6295ef2b7fa4bc06c5abf7597585547530a202780114301128c431f4fa86e1d45b95ebc61bf82
data/README.md CHANGED
@@ -56,15 +56,34 @@ Sending a message over MQTT:
56
56
  ```ruby
57
57
  require 'meshtastic'
58
58
  mqtt_obj = Meshastic::MQTT.connect
59
+ client_id = "!#{mqtt_obj.client_id}"
59
60
  Meshtastic::MQTT.send_text(
60
61
  mqtt_obj: mqtt_obj,
61
- from: '!0fa17b',
62
- topic: 'msh/US/2/e/LongFast/!0fa17b',
62
+ from: client_id,
63
+ to: '!ffffffff',
64
+ topic: "msh/US/2/e/LongFast/#{client_id}",
65
+ channel: 93,
63
66
  text: 'Hello, World!',
64
67
  psks: { LongFast: 'AQ==' }
65
68
  )
66
69
  ```
67
70
 
71
+ One of the "gotchas" when sending messages is ensuring you're sending over the proper channel. The best way to determine which channel you should use is by sending a test message from within the meshtastic app and then viewing the MQTT message similar to the following:
72
+
73
+ ```ruby
74
+ require 'meshtastic'
75
+ mqtt_obj = Meshastic::MQTT.connect
76
+ Meshtastic::MQTT.subscribe(
77
+ mqtt_obj: mqtt_obj,
78
+ region: 'US',
79
+ channel: '2/e/LongFast/#',
80
+ psks: { LongFast: 'AQ==' },
81
+ filter: '!YOUR_CLIENT_ID'
82
+ ) do |message|
83
+ puts message.inspect
84
+ end
85
+ ```
86
+
68
87
  ## Contributing
69
88
 
70
89
  Bug reports and pull requests are welcome on GitHub at https://github.com/0dayinc/meshtastic. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/0dayinc/meshtastic/blob/master/CODE_OF_CONDUCT.md).
@@ -137,6 +137,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
137
137
  optional :heading_bold, :bool, 9
138
138
  optional :wake_on_tap_or_motion, :bool, 10
139
139
  optional :compass_orientation, :enum, 11, "meshtastic.Config.DisplayConfig.CompassOrientation"
140
+ optional :use_12h_clock, :bool, 12
140
141
  end
141
142
  add_enum "meshtastic.Config.DisplayConfig.GpsCoordinateFormat" do
142
143
  value :DEC, 0
@@ -385,6 +385,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
385
385
  value :WISMESH_TAP, 84
386
386
  value :ROUTASTIC, 85
387
387
  value :MESH_TAB, 86
388
+ value :MESHLINK, 87
388
389
  value :PRIVATE_HW, 255
389
390
  end
390
391
  add_enum "meshtastic.Constants" do
@@ -31,6 +31,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
31
31
  proto3_optional :wind_gust, :float, 16
32
32
  proto3_optional :wind_lull, :float, 17
33
33
  proto3_optional :radiation, :float, 18
34
+ proto3_optional :rainfall_1h, :float, 19
35
+ proto3_optional :rainfall_24h, :float, 20
34
36
  end
35
37
  add_message "meshtastic.PowerMetrics" do
36
38
  proto3_optional :ch1_voltage, :float, 1
@@ -124,6 +126,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
124
126
  value :SCD4X, 32
125
127
  value :RADSENS, 33
126
128
  value :INA226, 34
129
+ value :DFROBOT_RAIN, 35
127
130
  end
128
131
  end
129
132
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meshtastic
4
- VERSION = '0.0.92'
4
+ VERSION = '0.0.94'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meshtastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.92
4
+ version: 0.0.94
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.