-
-
Notifications
You must be signed in to change notification settings - Fork 20
vscp_client_tcp
Åke Hedman edited this page Jun 3, 2021
·
5 revisions
VSCP over tcp/ip (VSCP link protocol).
- Header file: vscp_clinet_tcp.h
- Implementation file: vscp_clinet_tcp.cpp
You can find a simple sample here.
You configure the client by sending a JSON object to it with the
bool initFromJson(const std::string& config)
call. You can also fetch current configuration data with
std::string getConfigAsJson(void)
The configuration has the following format
{
"host": "remote host name on form tcp://127.0.0.1:9598 or stcp://127.0.0.1:9598 (secure),
"user": "Username to use to login to the remote server",
"password": "Password to use to login to the remote host",
"bpoll": "Set to true to use manual polling",
"connection-timeout": 1,
"response-timeout": 10,
"selected-interface": "FF:EE:DD:CC:BB:AA:99:88:77:66:55:44:33:22:11:00",
"tls" : {
}
}
The VSCP Project (https://www.vscp.org) - Copyright © 2000-2024 Åke Hedman, the VSCP Project