-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathremoteSerialESP.xml
50 lines (42 loc) · 2.55 KB
/
remoteSerialESP.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<TcMenuPlugin name="ESP Serial remote control (Rs232 / USB / Bluetooth)" id="ba23b2a7-040e-40e2-8fae-d45c82cf450b" subsystem="REMOTE"
xmlns="https://www.thecoderscorner.com/libraries/tcmenuPluginItem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.thecoderscorner.com/libraries/tcmenuPluginItem https://tcmenu.github.io/documentation/arduino-libraries/libraries/tcmenu-plugin-item.xsd">
<SupportedPlatforms>
<Platform>ARDUINO_ESP8266</Platform>
<Platform>ARDUINO_ESP32</Platform>
</SupportedPlatforms>
<Description>Use this option to be able to control the menu over many kinds of serial link from ESP boards, for example RS232, USBSerial, Bluetooth. The full menu structure will be available to the remote using either the protocol or the API..</Description>
<Documentation link="https://tcmenu.github.io/documentation/arduino-libraries/tc-menu/tcmenu-iot/serial-remote-plugin/"/>
<RequiredLibraries/>
<ImageFile>serial-connection.jpg</ImageFile>
<Properties>
<Property id="SERIAL_PORT" name="Serial port" desc="Enter the variable name of the serial port. E.G: Serial" initial="Serial" type="variable"/>
<Property id="HARDWARE_PORT" name="Is Hardware Port" desc="The port is a hardware serial port (see HardwareSerial)" initial="true" type="boolean"/>
</Properties>
<ApplicabilityDefs/>
<SourceFiles>
<Replacement find="Stream\*" replace="HardwareSerial*" whenProperty="HARDWARE_PORT" isValue="true"/>
<Replacement find="serialPort->availableForWrite() != 0" replace="true" whenProperty="HARDWARE_PORT" isValue="false"/>
<SourceFile name="serialSrc/SerialTransport.cpp"/>
<SourceFile name="serialSrc/SerialTransport.h"/>
</SourceFiles>
<IncludeFiles>
<Header name="RemoteConnector.h" inSource="false"/>
<Header name="SerialTransport.h" inSource="true"/>
</IncludeFiles>
<GlobalVariables>
<Variable name="serialInitializer" type="NoInitialisationNeeded"/>
<Variable name="serialTransport" type="SerialTagValueTransport">
<Param ref="${SERIAL_PORT}"/>
</Variable>
<Variable name="serialConnection" type="TagValueRemoteServerConnection">
<Param value="serialTransport"/>
<Param value="serialInitializer"/>
</Variable>
</GlobalVariables>
<SetupFunctions>
<Function name="addConnection" object="remoteServer">
<Param ref="serialConnection"/>
</Function>
</SetupFunctions>
</TcMenuPlugin>