freewifi 0.2.0 → 0.2.1

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.
@@ -12,6 +12,7 @@ class NEWhubWifiApi_1
12
12
 
13
13
 
14
14
  def get_info_subs_from_mik_1(subs_mac, controllers_ip)
15
+ input_parameters = {:subs_mac => subs_mac, :controllers_ip => controllers_ip}
15
16
  #region get additional information
16
17
 
17
18
  subscribers_mac = subs_mac
@@ -30,7 +31,8 @@ def get_info_subs_from_mik_1(subs_mac, controllers_ip)
30
31
  mikrot_connection1.get_reply('/caps-man/registration-table/getall') do |req, sentence|
31
32
 
32
33
  req.reply.each do |reply|
33
- if reply.key?('!re')
34
+ if reply.key?('mac-address')
35
+ #p reply
34
36
  if reply['mac-address'] == subscribers_mac
35
37
 
36
38
  access_point = reply['interface']
@@ -90,7 +92,7 @@ def get_info_subs_from_mik_1(subs_mac, controllers_ip)
90
92
  #endregion
91
93
  answ = subscribers_mac+ "---" + access_point + "---" + ssid_ap + "---" + tx_rate_set + "---"+ tx_rate + "---"+ rx_rate + "---"+ rx_signal + "---"+ uptime + "---"+ packets + "---"+ bytes
92
94
 
93
- return answ
95
+ answ
94
96
 
95
97
  end
96
98
 
@@ -1,3 +1,3 @@
1
1
  module Freewifi_1
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freewifi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dzmitry Buynovskiy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-29 00:00:00.000000000 Z
11
+ date: 2020-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -224,6 +224,7 @@ files:
224
224
  - lib/freewifi/database/mysql/database_methods_wifi.rb
225
225
  - lib/freewifi/general/wifi_portal_procedures.rb
226
226
  - lib/freewifi/huawei/hua_controller_class.rb
227
+ - lib/freewifi/mikrotik/automation/get_data_ssh_fun.rb
227
228
  - lib/freewifi/mikrotik/getsubscribermikrotik.rb
228
229
  - lib/freewifi/mikrotik/newhub_mtik_api.rb
229
230
  - lib/freewifi/mikrotik/newhub_mtik_ssh.rb