Public Member Functions | List of all members
Link Class Reference

Experimental Behaviour leverages the ability to deliver commands over serial. If a block is connected to another via TX -> RX pins, it can deliver this command and connected block will message the server that they have linked together. If the blocks unlink the behaviour will time out and an unlink message will be sent. More...

#include <CommsBehaviours.h>

Inheritance diagram for Link:
Behaviour

Public Member Functions

char * args ()
 
 Link (VizBlock *node, String name="Link")
 
String start (String args)
 
void update ()
 
- Public Member Functions inherited from Behaviour
 Behaviour (String name)
 
virtual boolean is_background ()
 
virtual boolean is_interruptable ()
 
virtual boolean is_priority ()
 
virtual boolean is_running ()
 
virtual boolean is_temp ()
 
virtual String name ()
 
virtual void stop ()
 
 ~Behaviour ()
 

Additional Inherited Members

- Protected Attributes inherited from Behaviour
boolean _background = false
 
boolean _interruptable = true
 
String _name = "name"
 
boolean _priority = false
 
boolean _running = false
 
boolean _temp = false
 

Detailed Description

Experimental Behaviour leverages the ability to deliver commands over serial. If a block is connected to another via TX -> RX pins, it can deliver this command and connected block will message the server that they have linked together. If the blocks unlink the behaviour will time out and an unlink message will be sent.

Constructor & Destructor Documentation

◆ Link()

Link::Link ( VizBlock node,
String  name = "Link" 
)

Member Function Documentation

◆ args()

char* Link::args ( )
virtual

What arguments does the behaviour take? Override this to document your behaviour.

Reimplemented from Behaviour.

◆ start()

String Link::start ( String  args)
virtual

Start the behaviour, with arguments.

Reimplemented from Behaviour.

◆ update()

void Link::update ( )
virtual

Update the behaviour periodically.

Reimplemented from Behaviour.


The documentation for this class was generated from the following file: