This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Digitise an older engine - ESP32
#40
(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
Reply


Messages In This Thread
RE: Digitise an older engine - ESP32 - by MigGat - 2022-03-24, 10:11 AM
RE: Digitise an older engine - ESP32 - by Sailoog - 2022-03-25, 08:08 PM
RE: Digitise an older engine - ESP32 - by Paul M - 2022-03-26, 03:22 PM
RE: Digitise an older engine - ESP32 - by PaddyB - 2022-03-28, 11:30 AM
RE: Digitise an older engine - ESP32 - by PaddyB - 2022-03-26, 09:21 PM
RE: Digitise an older engine - ESP32 - by Sailoog - 2022-03-31, 11:59 AM
RE: Digitise an older engine - ESP32 - by tYuoAz - 2022-04-01, 10:40 PM
RE: Digitise an older engine - ESP32 - by Paul M - 2022-09-13, 03:03 PM
RE: Digitise an older engine - ESP32 - by SCarns - 2022-04-04, 03:48 PM
RE: Digitise an older engine - ESP32 - by MigGat - 2022-04-03, 06:08 PM
RE: Digitise an older engine - ESP32 - by Techstyle - 2023-02-09, 12:57 AM
RE: Digitise an older engine - ESP32 - by MigGat - 2023-03-25, 01:18 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)