Module: Meshtastic::Clientonly
- Defined in:
- lib/meshtastic/clientonly.rb
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
19 20 21 |
# File 'lib/meshtastic/clientonly.rb', line 19 public_class_method def self. "AUTHOR(S):\n 0day Inc. <[email protected]>\n " end |
.decode(opts = {}) ⇒ Object
14 15 16 17 |
# File 'lib/meshtastic/clientonly.rb', line 14 public_class_method def self.decode(opts = {}) bytes = opts[:bytes] Meshtastic::DeviceProfile.decode(bytes) end |
.encode(opts = {}) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/meshtastic/clientonly.rb', line 7 public_class_method def self.encode(opts = {}) profile = Meshtastic::DeviceProfile.new profile.long_name = opts[:long_name].to_s if opts[:long_name] profile.short_name = opts[:short_name].to_s if opts[:short_name] profile end |
.help ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/meshtastic/clientonly.rb', line 23 public_class_method def self.help puts " USAGE: # Run the encode class method for this module. #{self}.encode( long_name: 'optional - value for long_name passed into encode', short_name: 'optional - value for short_name passed into encode' ) # Run the decode class method for this module. #{self}.decode( bytes: 'optional - value for bytes passed into decode' ) # Run the authors class method for this module. #{self}.authors " end |