Skip to content

Commit

Permalink
Fixing defines in the client
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleparrott committed Mar 22, 2017
1 parent 567efac commit 64919e4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 5 additions & 1 deletion cmd-control-client/config.json
@@ -1,5 +1,9 @@
{
"cnc": {
"client_tx_pipe": "\"/usr/local/kubos/client-to-server\"",
"client_rx_pipe": "\"/usr/local/kubos/server-to-client\""
},
"csp": {
"socket": true
}
}
}
7 changes: 5 additions & 2 deletions cmd-control-client/source/main.c
Expand Up @@ -40,6 +40,9 @@
#define SERVER_CSP_ADDRESS 1
#define SOCKET_PORT 8189

#define CNC_CLIENT_RX_PIPE YOTTA_CFG_CNC_CLIENT_RX_PIPE
#define CNC_CLIENT_TX_PIPE YOTTA_CFG_CNC_CLIENT_TX_PIPE

csp_iface_t csp_socket_if;
csp_socket_handle_t socket_driver;

Expand Down Expand Up @@ -92,8 +95,8 @@ bool init()
int my_address = 2;
char *rx_channel_name, *tx_channel_name;

tx_channel_name = "/home/vagrant/client-to-server";
rx_channel_name = "/home/vagrant/server-to-client";
tx_channel_name = CNC_CLIENT_TX_PIPE;
rx_channel_name = CNC_CLIENT_RX_PIPE;


/* Init CSP and CSP buffer system */
Expand Down
4 changes: 2 additions & 2 deletions cmd-control-daemon/config.json
Expand Up @@ -2,8 +2,8 @@
"cnc": {
"daemon_log_path": "\"/var/log.daemon.log\"",
"registry_dir": "\"/usr/local/kubos\"",
"daemon_rx_pipe": "\"/home/vagrant/client-to-server\"",
"daemon_tx_pipe": "\"/home/vagrant/server-to-client\""
"daemon_rx_pipe": "\"/usr/local/kubos/client-to-server\"",
"daemon_tx_pipe": "\"/usr/local/kubos/server-to-client\""
},
"csp": {
"socket": true
Expand Down

0 comments on commit 64919e4

Please sign in to comment.