Newer
Older
#ifndef BUTTON_BEHAVIOUR_h
#define BUTTON_BEHAVIOUR_h
#include "Arduino.h"
#include "Behaviours.h"
class ButtonPressed : public Behaviour
{
/*
* Class that defines a behaviour that publishes a
* ButtonPressed message to the input topic of the
* MQQT broker
*/
VizBlocks* _node;
ButtonPressed(VizBlocks* node, String name = "ButtonPressed");
class ButtonReleased : public Behaviour
{
/*
* Class that defines a behaviour that publishes a
* ButtonReleased message to the input topic of the
* MQQT broker
*/
VizBlocks* _node;
char* args();
String start(String args);
/*
* Class that defines a behaviour that publishes a
* ButtonClicked message to the input topic of the
* MQQT broker
*/
VizBlocks* _node;
/*
* Class that defines a behaviour that publishes a
* ButtonLongPressed message to the input topic of the
* MQQT broker
*/
VizBlocks* _node;
ButtonHeld(VizBlocks* node, String name = "ButtonHeld");
class ButtonTick : public Behaviour
{
/*
* Class that defines a behaviour that publishes a
* ButtonRepeatPressed message to the input topic of the
* MQQT broker
*/
VizBlocks* _node;
ButtonTick(VizBlocks* node, String name = "ButtonTick");