The view a logger has of any Northern Widget sensor library: name, reports, status line.
Classes
| Name | |
|---|---|
| class | NW_Sensor What a data logger needs from a sensor library to keep a status file. |
Source code
#ifndef NW_Sensor_h
#define NW_Sensor_h
#include <Arduino.h>
class NW_Sensor {
public:
virtual ~NW_Sensor() {}
virtual const char* name() const = 0;
virtual uint8_t reportKind() = 0;
virtual bool reportIsFault() = 0;
virtual uint8_t bootReportKind() = 0;
virtual void clearBootReport() = 0;
virtual size_t printStatus(Print& out, bool boot = false) = 0;
};
#endif
Updated on 2026-09-29 at 05:58:59 +0000