meshtastic 0.0.89 → 0.0.90
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 +4 -4
- data/README.md +14 -0
- data/lib/meshtastic/mqtt.rb +1 -1
- data/lib/meshtastic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 399b17ea515e4d17eeace3244edec4a6d9fba7b20839f8b2881b92567b545b6b
|
4
|
+
data.tar.gz: ac1c2da7e7b85c79d2b467e38e4752d5b6e8acf907c5497d884373e970da4984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e5d28851f8bb46ee63b1d1b1f268cea26560992b5ae51acd67c014e9c47677a71daa83c014ea78344a1c9b1bd73b0637f2aa688c1b9ba8ef22ce18155ee5eb1
|
7
|
+
data.tar.gz: 53592444adbbcc5b2617037dee373c70d91cb137f5ebf154ae7bf03eda0a37e5aa559251f9561cec68dfcc4c8cee00d9fdd931dca3c1f05fe460d600a722fa55
|
data/README.md
CHANGED
@@ -46,6 +46,20 @@ Meshtastic::MQTT.subscribe(mqtt_obj: mqtt_obj) do |message|
|
|
46
46
|
end
|
47
47
|
```
|
48
48
|
|
49
|
+
Sending a message over MQTT:
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
require 'meshtastic'
|
53
|
+
mqtt_obj = Meshastic::MQTT.connect
|
54
|
+
Meshtastic::MQTT.send_text(
|
55
|
+
mqtt_obj: mqtt_obj,
|
56
|
+
from: '!00fa1f',
|
57
|
+
topic: 'msh/US/2/e/LongFast/!00fa1f',
|
58
|
+
text: 'Hello, World!',
|
59
|
+
psks: { LongFast: 'AQ==' }
|
60
|
+
)
|
61
|
+
```
|
62
|
+
|
49
63
|
## Contributing
|
50
64
|
|
51
65
|
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).
|
data/lib/meshtastic/mqtt.rb
CHANGED
@@ -269,7 +269,7 @@ module Meshtastic
|
|
269
269
|
port: 'optional - mqtt port (defaults: 1883)',
|
270
270
|
username: 'optional - mqtt username (default: meshdev)',
|
271
271
|
password: 'optional - (default: large4cats)',
|
272
|
-
client_id: 'optional - client ID (default: random
|
272
|
+
client_id: 'optional - client ID (default: random 4-byte hex string)'
|
273
273
|
)
|
274
274
|
|
275
275
|
#{self}.subscribe(
|
data/lib/meshtastic/version.rb
CHANGED