Commit 62625b41 authored by apapkovskiy's avatar apapkovskiy
Browse files

Added sudo for simple daemon simple server

parent 9858ce36
......@@ -32,8 +32,8 @@
#include "nxLog_smCom.h"
static int axSmDevice;
static int axSmDevice_addr = 0x48; // 7-bit address
static char devName[] = "/dev/i2c-1"; // Change this when connecting to another host i2c master port
static int axSmDevice_addr = 0x49; // 7-bit address
static char devName[] = "/dev/i2c-3"; // Change this when connecting to another host i2c master port
/**
* Opens the communication channel to I2C device
......
......@@ -47,7 +47,7 @@
#include "fsl_sss_ftr_default.h"
#endif
const char* PORT = "8051"; // the port users will be connecting to
const char* PORT = "8050"; // the port users will be connecting to
const int BACKLOG = 1;
#define APP_BUFFER 2048
......
#!/bin/bash
set -x
sudo $SNAP/bin/simple_server
......@@ -35,7 +35,6 @@ parts:
- -DWithHostCrypto_MBEDTLS=OFF
- -DWithSMCOM_VCOM=OFF
- -DWithSMCOM_SCI2C=ON
- -DCMAKE_INSTALL_PREFIX=/sci2c
override-build: |
snapcraftctl build
mkdir -p ${SNAPCRAFT_PART_INSTALL}/bin
......@@ -67,13 +66,9 @@ parts:
apps:
jrcp-server:
environment:
LD_LIBRARY_PATH: $SNAP/sci2c/lib:$LD_LIBRARY_PATH
command: "bin/simple_server"
command: "bin/start-simple-server"
daemon: simple
plugs: &default-plugs [network-bind, network-control, network-setup-control, network]
A71CHConfigTool:
environment:
LD_LIBRARY_PATH: $SNAP/sci2c/lib:$LD_LIBRARY_PATH
command: "bin/A71CHConfigTool"
plugs: *default-plugs
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment