Difference between revisions of "Component: TCP/IP Dummy (Raspberry Pi) (Comms: Networking)"
From Flowcode Help
Jump to navigationJump to search(One intermediate revision by the same user not shown) | |||
Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_TCPIP_RPI_Dummy.fcfx FC_Comp_Source_TCPIP_RPI_Dummy.fcfx] |
− | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_TCPIP_RPI_Dummy.fcfx FC_Comp_Source_TCPIP_RPI_Dummy.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 85: | Line 85: | ||
{{Fcfile|NetworkComms-RPI-Server.fcfx|Example RPI HTML Webserver}} | {{Fcfile|NetworkComms-RPI-Server.fcfx|Example RPI HTML Webserver}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
Line 258: | Line 262: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Latest revision as of 13:13, 7 February 2023
Author | Matrix Ltd. |
Version | 1.8 |
Category | Comms: Networking |
Contents
TCP/IP Dummy component
TCP/IP sockets component for use with Raspberry Pi. Raspberry Pi Only
Component Source Code
Please click here to download the component source project: FC_Comp_Source_TCPIP_RPI_Dummy.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_TCPIP_RPI_Dummy.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Here is an example of using the TCP/IP component as a means to request data from a remote server on the internet or local network.
Example RPI Client Request Data
Here is an example of using the TCP/IP component as a means to serve data to a client via the internet or local network.
Macro reference
AcceptClose
![]() |
AcceptClose |
Close the accept socket | |
![]() |
Return |
AcceptOpen
![]() |
AcceptOpen |
![]() |
Return |
Connect
Initialise
![]() |
Initialise |
![]() |
Return |
Listen
![]() |
Listen |
Bind the socket to a port on the local host and set to listen mode. First open a socket on the local device using the Socket function and check that it is successful. | |
![]() |
Port |
![]() |
Return |
Receive
![]() |
Receive |
Receive data into the data buffer. Returns the number of bytes received | |
![]() |
Data |
Data byte buffer to receive the data | |
![]() |
Count |
Maximum number of bytes to read | |
![]() |
Return |
Send
![]() |
Send |
Send data | |
![]() |
Data |
Data byte buffer to send | |
![]() |
Count |
Number of bytes to send | |
![]() |
Return |
SocketClose
![]() |
SocketClose |
Close the socket | |
![]() |
Return |
SocketOpen
Property reference
![]() |
Properties |