class Simms::ElectricityConfigBeacon

Public Instance Methods

ct_amps() click to toggle source
# File lib/simms/electricity_config_beacon.rb, line 6
def ct_amps
  @bytes.uint16(6)
end
nominal_voltage() click to toggle source
# File lib/simms/electricity_config_beacon.rb, line 10
def nominal_voltage
  @bytes.uint16(8)
end
phase_type() click to toggle source
# File lib/simms/electricity_config_beacon.rb, line 14
def phase_type
  @bytes.uint8(10)
end
phase_type_description() click to toggle source

Human-readable description of the phase type

# File lib/simms/electricity_config_beacon.rb, line 19
def phase_type_description
  case phase_type
  when 0 then
    '3 Phase With Neutral, Display L-N'
  when 1 then
    '3 Phase With Neutral, Display L-L'
  when 2 then
    'Single Split Phase A+B with Neutral, Display L-N'
  when 3 then 
    'Single Phase A to Neutral, Display L-N'
  else
    'Unknown phase type!'
  end
end