Difference between revisions of "Component: SerialPort ( Comms)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | MatrixTSL |- | width="20%" style="color:gray;" | Version | 0.1 |- | width="20%" style="color:gray;...") |
|||
Line 21: | Line 21: | ||
==Examples== | ==Examples== | ||
− | + | ===Simple Data=== | |
+ | Example program showing how to use communicate to a standard serial COM port. | ||
+ | {{Fcfile|WebSerialExample.fcsx|Web Serial Port Example}} | ||
==Macro reference== | ==Macro reference== |
Latest revision as of 08:53, 14 May 2024
Author | MatrixTSL |
Version | 0.1 |
Category | Comms |
Contents
SerialPort component
Allows connection to a serial port e.g. a standard serial COM port from the browser.
Detailed description
No detailed description exists yet for this component
Examples
Simple Data
Example program showing how to use communicate to a standard serial COM port.
Macro reference
Close
![]() |
Close |
Closes the serial port | |
![]() |
Return |
GetProductId
![]() |
GetProductId |
Returns the productId of the selected USB COM port | |
![]() |
Return |
GetVendorId
![]() |
GetVendorId |
Returns the vendortId of the selected USB COM port | |
![]() |
Return |
Open
![]() |
Open |
Attempts to open a serial port that has already been selected using RequestPort Returns true if port is successfully opened | |
![]() |
Return |
ReceiveString
![]() |
ReceiveString |
Receives a string from the serial port | |
![]() |
Timeout |
Time (in ms) to wait for data | |
![]() |
NumChars |
Number of characters to try to receive | |
![]() |
Return |
RequestPort
SendString
![]() |
SendString |
Sends a text string through an open serial port | |
![]() |
sText |
![]() |
Return |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WEBEXP_SerialPort.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_SerialPort.fcsx