Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » How to use client fbd for http
How to use client fbd for http [message #1860926] Sat, 09 September 2023 16:32 Go to next message
Cihat Topal is currently offline Cihat TopalFriend
Messages: 8
Registered: March 2020
Junior Member
Hi,
I want to use 4diac http on linux(ubuntu). For this I compiled forte with FORTE_COM_HTTP.
I used pthon server example like this:
pthon3 http.server 80 -> this provides a http server on localhost

Then I tried to use client_1 and also client_2_1 fbds, there is no connection to socket.
There is an error occures:
ERROR: A client should ALWAYS have exactly 2 RD ...

I added screentshots.
What am i missing?

Best regards
Re: How to use client fbd for http [message #1860938 is a reply to message #1860926] Sun, 10 September 2023 18:10 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

Hi,

as the error messages says you need a CLIENT FB with two RDs (outputs). This for example a CLIENT_1_2 or a CLIENT_0_3. You can create these by copying an existing CLIENT FB and adjust the name as well as the interface in the FB editor. You do not need to generate C++ code for these FBs.
I hope this helps.
Re: How to use client fbd for http [message #1860947 is a reply to message #1860938] Mon, 11 September 2023 12:37 Go to previous message
Cihat Topal is currently offline Cihat TopalFriend
Messages: 8
Registered: March 2020
Junior Member
Thank you for reply Professor

[Updated on: Fri, 15 September 2023 08:20]

Report message to a moderator

Previous Topic:Porting Forte.
Next Topic:Does 4DIAC support Bluetooth Low Energy connection?
Goto Forum:
  


Current Time: Sat Apr 27 21:44:58 GMT 2024

Powered by FUDForum. Page generated in 0.03826 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top