2023-02-09, 12:57 AM
(2023-02-09, 12:17 AM)Sailabout Wrote: ". . . . unless you have a sensor connected". Not completely accurate perhaps, but I think I understand now the situation.
Oops . . . . it is not a "I2C" connection but a oneWire connection, of course!
with regard to 1-wire, the first statement is correct. if you look in "onewire_temperature.h" (refereneced at the top of the Main.cpp) you will find:
Code:
class OneWireTemperature : public FloatSensor {
public:
OneWireTemperature(DallasTemperatureSensors* dts, uint read_delay = 1000,
String config_path="");
void start() override final;
virtual void get_configuration(JsonObject& doc) override final;
virtual bool set_configuration(const JsonObject& config) override final;
virtual String get_config_schema() override;
private:
DallasTemperatureSensors* dts_;
uint conversion_delay_ = DSTherm::MAX_CONV_TIME;
uint read_delay_;
bool found_ = true;
OWDevAddr address_ = {};
void update();
void read_value();
};
if found_ = false then it does not read and update the value, so no sentence sent to SignalK