meshtastic 0.0.140 → 0.0.142
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/lib/meshtastic/mqtt.rb +1 -2
 - 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: e2aa680394f933212a2594dea754a81b9d48ef311b8bdbcc85aa89d2cf50c5a5
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 416c34c89d9873119b38421dffbbddf79a8b55d4655db37d2bee8d1e7ad57097
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: dc261576f60f60f47894f7fa21fa58f5a947bdc8ad7009e9f2d3f3cf862ff3561743253e7cb38e9e848367d9aaf7aaffe121238e962d57cba6b984987d2c42b8
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 78b9c0f8c8b975e505ba12a3b1efdb550b005b4c7d276c3638b6a11f1193722a7789fe30774f0838b754839135e46ed8724c061fc68c95a3db35ecf8563f50f7
         
     | 
    
        data/lib/meshtastic/mqtt.rb
    CHANGED
    
    | 
         @@ -95,7 +95,6 @@ module Meshtastic 
     | 
|
| 
       95 
95 
     | 
    
         
             
                  # NOTE: Use MQTT Explorer for topic discovery
         
     | 
| 
       96 
96 
     | 
    
         
             
                  full_topic = "#{root_topic}/#{region}/#{topic}"
         
     | 
| 
       97 
97 
     | 
    
         
             
                  full_topic = "#{root_topic}/#{region}" if region == '#'
         
     | 
| 
       98 
     | 
    
         
            -
                  puts "Subscribing to: #{full_topic}"
         
     | 
| 
       99 
98 
     | 
    
         
             
                  mqtt_obj.subscribe(full_topic, qos)
         
     | 
| 
       100 
99 
     | 
    
         | 
| 
       101 
100 
     | 
    
         
             
                  # MQTT::ProtocolException: No Ping Response received for 23 seconds (MQTT::ProtocolException)
         
     | 
| 
         @@ -286,7 +285,7 @@ module Meshtastic 
     | 
|
| 
       286 
285 
     | 
    
         
             
                    total_chunks = (text.bytesize.to_f / max_bytes).ceil
         
     | 
| 
       287 
286 
     | 
    
         
             
                    total_chunks.times do |i|
         
     | 
| 
       288 
287 
     | 
    
         
             
                      chunk_num = i + 1
         
     | 
| 
       289 
     | 
    
         
            -
                      chunk_prefix = " (#{chunk_num} of #{total_chunks})"
         
     | 
| 
      
 288 
     | 
    
         
            +
                      chunk_prefix = " (#{chunk_num} of #{total_chunks})\n"
         
     | 
| 
       290 
289 
     | 
    
         
             
                      chunk_prefix_len = chunk_prefix.bytesize
         
     | 
| 
       291 
290 
     | 
    
         
             
                      start_index = i * (max_bytes - chunk_prefix_len)
         
     | 
| 
       292 
291 
     | 
    
         
             
                      end_index = (start_index + (max_bytes - chunk_prefix_len)) - 1
         
     | 
    
        data/lib/meshtastic/version.rb
    CHANGED