Module: Meshtastic::Deviceonly
- Defined in:
- lib/meshtastic/deviceonly.rb
Class Method Summary collapse
- .authors ⇒ Object
- .decode_nodedb(opts = {}) ⇒ Object
- .decode_state(opts = {}) ⇒ Object
- .help ⇒ Object
Class Method Details
.authors ⇒ Object
17 18 19 |
# File 'lib/meshtastic/deviceonly.rb', line 17 public_class_method def self. "AUTHOR(S):\n 0day Inc. <[email protected]>\n " end |
.decode_nodedb(opts = {}) ⇒ Object
12 13 14 15 |
# File 'lib/meshtastic/deviceonly.rb', line 12 public_class_method def self.decode_nodedb(opts = {}) bytes = opts[:bytes] Meshtastic::NodeDatabase.decode(bytes) end |
.decode_state(opts = {}) ⇒ Object
7 8 9 10 |
# File 'lib/meshtastic/deviceonly.rb', line 7 public_class_method def self.decode_state(opts = {}) bytes = opts[:bytes] Meshtastic::DeviceState.decode(bytes) end |
.help ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/meshtastic/deviceonly.rb', line 21 public_class_method def self.help puts " USAGE: # Run the decode_state class method for this module. #{self}.decode_state( bytes: 'optional - value for bytes passed into decode_state' ) # Run the decode_nodedb class method for this module. #{self}.decode_nodedb( bytes: 'optional - value for bytes passed into decode_nodedb' ) # Run the authors class method for this module. #{self}.authors " end |