Initial support for TCP comms blocks

This commit is contained in:
Thiago Alves
2022-11-11 11:50:45 -05:00
committed by GitHub
parent f8fa47f680
commit 0c0c642dfc
2 changed files with 6 additions and 4 deletions
+1 -4
View File
@@ -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 */
+5
View File
@@ -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);