public abstract class AbstractSensor extends java.lang.Object implements IMqttHandler
| Modifier and Type | Field and Description |
|---|---|
protected Robot |
robot |
protected int |
robotId |
protected RobotMqttClient |
robotMqttClient |
| Constructor and Description |
|---|
AbstractSensor(Robot robot,
RobotMqttClient mqttClient)
AbstractSensor class
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleSubscription(Robot r,
MqttMsg m)
Handle related MQTT subscriptions
|
protected RobotMqttClient robotMqttClient
protected int robotId
protected Robot robot
public AbstractSensor(Robot robot, RobotMqttClient mqttClient)
robot - robot objectmqttClient - mqttClient objectpublic void handleSubscription(Robot r, MqttMsg m)
handleSubscription in interface IMqttHandlerrobot - Robot objectm - Subscription topic received object