arduino-emulator
|
Configures and manages remote hardware interfaces for Arduino emulation. More...
#include <HardwareSetupRemote.h>
Public Member Functions | |
HardwareSetupRemote ()=default | |
default constructor: you need to call begin() afterwards | |
HardwareSetupRemote (int port) | |
HardwareSetup that uses udp. | |
HardwareSetupRemote (Stream &stream) | |
HardwareSetup uses the indicated stream. | |
void | begin (bool asDefault=true) |
start with the default udp stream. | |
void | begin (int port, bool asDefault) |
start with udp on the indicatd port | |
bool | begin (Stream *s, bool asDefault=true, bool doHandShake=true) |
assigns the different protocols to the stream | |
void | end () |
HardwareGPIO * | getGPIO () |
HardwareI2C * | getI2C () |
HardwareSPI * | getSPI () |
Protected Member Functions | |
void | handShake (Stream *s) |
Protected Attributes | |
WiFiUDPStream | default_stream |
RemoteGPIO | gpio |
RemoteI2C | i2c |
bool | is_default_objects_active = false |
Stream * | p_stream = nullptr |
int | port |
RemoteSPI | spi |
Configures and manages remote hardware interfaces for Arduino emulation.
This class is responsible for setting up and managing remote hardware APIs such as I2C, SPI, and GPIO over a network or stream interface. It provides mechanisms to assign protocol handlers to a communication stream, perform handshakes with remote devices, and manage the lifecycle of hardware connections.
Key features:
Usage:
|
inlinevirtual |
Implements arduino::GPIOSource.
|
inlinevirtual |
Implements arduino::I2CSource.
|
inlinevirtual |
Implements arduino::SPISource.