VLCB
Loading...
Searching...
No Matches
InternalDiagnosticsService.h
Go to the documentation of this file.
1// Copyright (C) Sven Rosvall (sven@rosvall.ie)
2// This file is part of VLCB-Arduino project on https://github.com/SvenRosvall/VLCB-Arduino
3// Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
4// The full licence can be found at: http://creativecommons.org/licenses/by-nc-sa/4.0
5//
6//
7
8
9#pragma once
10
11#include "Service.h"
12
13namespace VLCB
14{
15
26{
27public:
28 VlcbServiceTypes getServiceID() const override { return static_cast<VlcbServiceTypes>(240); }
29 byte getServiceVersionID() const override { return 1; }
30
31 void reportDiagnostics(byte serviceIndex, byte diagnosticsCode) override;
32 virtual int getDiagnosticCount() override;
33};
34
35}
A dummy service that reports internal metrics as service diagnostics.
Definition InternalDiagnosticsService.h:26
void reportDiagnostics(byte serviceIndex, byte diagnosticsCode) override
Report a given diagnostic value.
Definition InternalDiagnosticsService.cpp:14
virtual int getDiagnosticCount() override
report how many diagnostics this service supports.
Definition InternalDiagnosticsService.cpp:40
byte getServiceVersionID() const override
Return the version of the service specification implemented by this service.
Definition InternalDiagnosticsService.h:29
VlcbServiceTypes getServiceID() const override
Return a unique ID for this service.
Definition InternalDiagnosticsService.h:28
Interface base class for all VLCB services.
Definition Service.h:25
Definition AbstractEventTeachingService.cpp:13
VlcbServiceTypes
Definition vlcbdefs.hpp:487