mirror of
https://github.com/thiagoralves/OpenPLC_v3.git
synced 2026-09-25 00:42:46 +08:00
Initial support for TCP comms blocks
This commit is contained in:
@@ -732,11 +732,8 @@ __ANY(__move_)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#include "iec_std_functions.h"
|
||||
#include "iec_std_FB.h"
|
||||
#include "openplc_networking.h"
|
||||
|
||||
#endif /* _IEC_STD_LIB_H */
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
//client.cpp
|
||||
int connect_to_tcp_server(uint8_t *ip_address, uint16_t port);
|
||||
int send_tcp_message(uint8_t *msg, size_t msg_size, int socket_id);
|
||||
int receive_tcp_message(uint8_t *msg_buffer, size_t buffer_size, int socket_id);
|
||||
int close_tcp_connection(int socket_id);
|
||||
Reference in New Issue
Block a user