Newer
Older
#ifndef COMMS_BEHAVIOUR_h
#define COMMS_BEHAVIOUR_h
#include "Arduino.h"
#include "Behaviours.h"
/*
* --------------------------------------------------
* ---------------- SendCapabilities ----------------
* --------------------------------------------------
*/
SendCapabilities(VizBlocks* node, String name = "SendCapabilities");
};
/*
* --------------------------------------------------
* ---------------------- Link ----------------------
* --------------------------------------------------
*/
class Link : public Behaviour
{
VizBlocks* _node;
String _peerId;
const int _timeoutInterval = 5000;
unsigned long _t = 0;
Link(VizBlocks* node, String name = "Link");
/**
};
/*
* --------------------------------------------------
* ------------------- PingServer -------------------
* --------------------------------------------------
*/
class PingServer : public Behaviour
{
VizBlocks* _node;
String str;
const int _interval = 4000;
unsigned long _t = 0;
PingServer(VizBlocks* node, String name = "PingServer");
String start(String args);
void update();