Loom 4 v4.5
Arduino library for Internet of Things Rapid Prototyping in environmental sensing
|
#include <Loom_Max.h>
Classes | |
struct | UDPDeletor |
Close the socket and delete the UDP object when the unique ptr dissapears. More... | |
Public Types | |
using | UDPPtr = std::unique_ptr< UDP, UDPDeletor > |
Public Member Functions | |
void | initialize () override |
bool | publish () |
bool | subscribe () |
Loom_Max (Manager &man, Loom_WIFI &wifi) | |
template<typename T > | |
Loom_Max (Manager &man, Loom_WIFI &wifi, T *firstAct) | |
template<typename T , typename... Args> | |
Loom_Max (Manager &man, Loom_WIFI &wifi, T *firstAct, Args *... additionalActuators) | |
Public Member Functions inherited from Module | |
Module (const char *modName) | |
void | setModuleName (const char *modName) |
virtual const char * | getModuleName () |
virtual void | printModuleName (const char *message) |
virtual void | initialize ()=0 |
virtual void | measure ()=0 |
virtual void | package ()=0 |
virtual void | power_up ()=0 |
virtual void | power_down ()=0 |
virtual void | display_data () |
Protected Member Functions | |
void | measure () override |
void | power_up () override |
void | power_down () override |
void | package () override |
Additional Inherited Members | |
Public Attributes inherited from Module | |
bool | moduleInitialized = true |
int | module_address = -1 |
Class used to handle communication with Max MSP to control devices remotely
Construct a new instance of the the Max MSP Pub/Sub protocol
man | Reference to the manager |
wifi | Reference to the Wifi manager for getting UDP communication streams |
mode | How traffic is handled between the feather and the max client (CLIENT = Remote Router, AP = Access point on the feather) |
Construct a new instance of the the Max MSP Pub/Sub protocol
man | Reference to the manager |
wifi | Reference to the Wifi manager for getting UDP communication streams |
mode | How traffic is handled between the feather and the max client (CLIENT = Remote Router, AP = Access point on the feather) |
firstAct | The first actuator to add to the list |
|
inline |
Construct a new instance of the the Max MSP Pub/Sub protocol
man | Reference to the manager |
wifi | Reference to the Wifi manager for getting UDP communication streams |
mode | How traffic is handled between the feather and the max client (CLIENT = Remote Router, AP = Access point on the feather) |
firstAct | The first actuator to add to the list |
additionalActuators | This takes any number of actuators |
|
overridevirtual |
Initialize each actuator
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.
|
overrideprotectedvirtual |
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.
bool Loom_Max::publish | ( | ) |
Send the UDP packet from the device to the server
bool Loom_Max::subscribe | ( | ) |
Retrieve the response on the UDP stream if one is available