Skip to content
Snippets Groups Projects
PotentiometerBehaviours.hpp 523 B
Newer Older
#ifndef POTENTIOMETER_BEHAVIOUR_h
#define POTENTIOMETER_BEHAVIOUR_h
#include "Arduino.h"
#include "Behaviours.h"
Joe Revans's avatar
Joe Revans committed
#include <VizBlocks.h>

class PotentiometerUpdated : public Behaviour {
  /*
   * Class that defines a behaviour that publishes a
   * ButtonPressed message to the input topic of the
   * MQQT broker
   */
Joe Revans's avatar
Joe Revans committed
   VizBlocks* _node;
Joe Revans's avatar
Joe Revans committed
  PotentiometerUpdated(VizBlocks* node, String name = "PotentiometerUpdated") :
    Behaviour(name), _node(node){ }

  char* args();
  String start(String args);