Contents

RemoteXYStream Connection



Use special classes for certain types of connections. In the Arduino IDE, not all possible connections have objects that inherit from the Stream class. For such cases, special classes integrated into the remotexy.h library are used. These types of connections are managed automatically by RemoteXY.

To use such a connection, create an object of the corresponding class and attach it to the graphical interface.

Some connections require additional libraries. You can use any boards supported by the corresponding library. The required library must be included before including the remotexy.h library.

Example:

#include <BLEDevice.h> #include <RemoteXY.h> void setup() { RemoteXYGui * gui = RemoteXYEngine.addGui (RemoteXY_CONF_PROGMEM, &RemoteXY); gui->addConnection (new CRemoteXYStream_BLEDevice ("myRemoteXY")); }

ArduinoBLE.h Library

gui->addConnection (new CRemoteXYStream_ArduinoBLE (bleDeviceName));

bleDeviceName — the name of the device.

Adds a BLE connection using the ArduinoBLE.h library. Supported by any Arduino boards and other boards compatible with this library.

BLEDevice.h Library

gui->addConnection (new CRemoteXYStream_BLEDevice (bleDeviceName));

bleDeviceName — the name of the device.

Adds a BLE connection using the BLEDevice.h library. This library is used for controllers based on the ESP32 platform.

BLEPeripheral.h Library

gui->addConnection (new CRemoteXYStream_BLEPeripheral (bleDeviceName));

bleDeviceName — the name of the device.

Adds a BLE connection using the BLEPeripheral.h library. This library is used for controllers based on the nRF platform.