Roboid Control for C++
Loading...
Searching...
No Matches
DigitalSensor.h
1#pragma once
2
3#include "Thing.h"
4
5namespace RoboidControl {
6
8class DigitalSensor : public Thing {
9 public:
11 bool state = 0;
12
14 //DigitalSensor();
18 DigitalSensor(Participant* participant, unsigned char networkId, unsigned char thingId);
19};
20
21} // namespace RoboidControl
A digital (on/off, 1/0, true/false) sensor.
Definition DigitalSensor.h:8
bool state
The sigital state.
Definition DigitalSensor.h:11
A participant is a device which manages things. It can communicate with other participant to synchron...
Definition Participant.h:14
A thing is the primitive building block.
Definition Thing.h:20
unsigned char networkId
The network ID of this thing.
Definition Thing.h:64