Looking at the INA219Sensor.cpp source code I see:
bool INA219Sensor::getMetrics(meshtastic_Telemetry *measurement)
{
measurement->variant.environment_metrics.voltage = ina219.getBusVoltage_V();
measurement->variant.environment_metrics.current = ina219.getCurrent_mA();
return true;
}
Which tells me that the current and voltage of the INA219 is in the ENVIRONMENTAL_MEASUREMENT_APP packet coming from the node.
Looking at the environmental_measurement_pb2.py
_descriptor.FieldDescriptor(
name='voltage', full_name='EnvironmentalMeasurement.voltage', index=4,
number=5, type=1, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='current', full_name='EnvironmentalMeasurement.current', index=5,
number=6, type=1, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
I see where the voltage and current are listed. However when i receive a packet from the node that has the INA219 module on it, I am getting 0 VDC and 0 Amps, which i know is not true.
I am showing on the node that the
Sensor Options: Enabled
Show on device screen: Enabled
Display Fahrenheit: Enabled
I am seeing the current and voltage correctly on the OLED, but it is not in the data stream. As a matter of fact, ALL of the environmental variables from the telemetry stream are showing a value of 0.0.