VLCB
Toggle main menu visibility
Loading...
Searching...
No Matches
NodeVariableService.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
#pragma once
7
8
#include "
Service.h
"
9
#include <
vlcbdefs.hpp
>
10
11
namespace
VLCB
12
{
13
14
struct
VlcbMessage
;
15
22
class
NodeVariableService
:
public
Service
23
{
24
public
:
26
virtual
VlcbServiceTypes
getServiceID
()
const override
{
return
SERVICE_ID_NV
; }
27
virtual
byte
getServiceVersionID
()
const override
{
return
1; }
28
virtual
void
processAction
(
const
Action
&action)
override
;
29
virtual
Data
getServiceData
()
override
;
31
32
private
:
33
void
handleMessage(
const
VlcbMessage
*msg);
34
void
handleReadNV(
const
VlcbMessage
*msg,
unsigned
int
nn);
35
void
handleSetNV(
const
VlcbMessage
*msg,
unsigned
int
nn);
36
void
handleSetAndReadNV(
const
VlcbMessage
*msg,
unsigned
int
nn);
37
38
};
39
40
}
Service.h
VLCB::NodeVariableService
Service for managing node variables.
Definition
NodeVariableService.h:23
VLCB::NodeVariableService::getServiceData
virtual Data getServiceData() override
Return Data bytes specific for the implementing service. The meaning of each data byte is defined in ...
Definition
NodeVariableService.cpp:23
VLCB::NodeVariableService::processAction
virtual void processAction(const Action &action) override
Called when there is an action available.
Definition
NodeVariableService.cpp:15
VLCB::NodeVariableService::getServiceID
virtual VlcbServiceTypes getServiceID() const override
Return a unique ID for this service.
Definition
NodeVariableService.h:26
VLCB::NodeVariableService::getServiceVersionID
virtual byte getServiceVersionID() const override
Return the version of the service specification implemented by this service.
Definition
NodeVariableService.h:27
VLCB::Service
Interface base class for all VLCB services.
Definition
Service.h:25
VLCB
Definition
AbstractEventTeachingService.cpp:13
VLCB::Action
An action to be performed.
Definition
Controller.h:86
VLCB::VlcbMessage
VLCB message type.
Definition
Controller.h:38
vlcbdefs.hpp
VlcbServiceTypes
VlcbServiceTypes
Definition
vlcbdefs.hpp:487
SERVICE_ID_NV
@ SERVICE_ID_NV
Definition
vlcbdefs.hpp:493
src
NodeVariableService.h
Generated by
1.18.0