[doc] update doc
This commit is contained in:
Родитель
a2ea4a5ff1
Коммит
658fed20f7
|
@ -15,6 +15,6 @@ ARG EXE_DIR=.
|
|||
WORKDIR /app
|
||||
|
||||
COPY $EXE_DIR/ ./
|
||||
COPY --from=build-env /app/libcomWrapper.so /lib/arm-linux-gnueabihf/
|
||||
COPY --from=build-env /app/libcomWrapper.so /usr/lib/
|
||||
|
||||
CMD ["/usr/bin/dotnet", "iot-edge-modbus.dll"]
|
|
@ -15,6 +15,6 @@ ARG EXE_DIR=.
|
|||
WORKDIR /app
|
||||
|
||||
COPY $EXE_DIR/ ./
|
||||
COPY --from=build-env /app/libcomWrapper.so /lib/arm-linux-gnueabihf/
|
||||
COPY --from=build-env /app/libcomWrapper.so /usr/lib
|
||||
|
||||
CMD ["/usr/bin/dotnet", "iot-edge-modbus.dll"]
|
|
@ -15,6 +15,6 @@ ARG EXE_DIR=.
|
|||
WORKDIR /app
|
||||
|
||||
COPY $EXE_DIR/ ./
|
||||
COPY --from=build-env /app/libcomWrapper.so /lib/x86_64-linux-gnu/
|
||||
COPY --from=build-env /app/libcomWrapper.so /usr/lib/
|
||||
|
||||
CMD ["/usr/bin/dotnet", "iot-edge-modbus.dll"]
|
|
@ -24,6 +24,6 @@ FROM microsoft/dotnet:2.0.0-runtime
|
|||
WORKDIR /app
|
||||
|
||||
COPY --from=build-env /app/out ./
|
||||
COPY --from=build-env-2 /app/libcomWrapper.so /lib/x86_64-linux-gnu/
|
||||
COPY --from=build-env-2 /app/libcomWrapper.so /usr/lib/
|
||||
|
||||
CMD ["/usr/bin/dotnet", "iot-edge-modbus.dll"]
|
|
@ -71,7 +71,7 @@ $dotnet restore
|
|||
$dotnet build
|
||||
$dotnet publish -f netcoreapp2.0 -c Release
|
||||
$cd ../
|
||||
$docker build --build-arg EXE_DIR=./src/bin/Release/netcoreapp2.0/publish -t "modbus:latest" -f Docker/<PlatForm>/Dockerfile .
|
||||
$docker build --build-arg EXE_DIR=./src/bin/release/netcoreapp2.0/publish -t "modbus:latest" -f Docker/<PlatForm>/Dockerfile .
|
||||
```
|
||||
|
||||
## Configuration ##
|
||||
|
|
|
@ -43,25 +43,25 @@ namespace tempSerialPort
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport("comWrapper")]
|
||||
[DllImport("libcomWrapper.so")]
|
||||
public static extern int com_open(string pathname);
|
||||
|
||||
[DllImport("comWrapper")]
|
||||
[DllImport("libcomWrapper.so")]
|
||||
public static extern int com_close(int fd);
|
||||
|
||||
[DllImport("comWrapper")]
|
||||
[DllImport("libcomWrapper.so")]
|
||||
public static extern int com_read(int fd, IntPtr buf, int count);
|
||||
|
||||
[DllImport("comWrapper")]
|
||||
[DllImport("libcomWrapper.so")]
|
||||
public static extern int com_write(int fd, IntPtr buf, int count);
|
||||
|
||||
[DllImport("comWrapper")]
|
||||
[DllImport("libcomWrapper.so")]
|
||||
public static extern int com_tciflush(int fd);
|
||||
|
||||
[DllImport("comWrapper")]
|
||||
[DllImport("libcomWrapper.so")]
|
||||
public static extern int com_tcoflush(int fd);
|
||||
|
||||
[DllImport("comWrapper")]
|
||||
[DllImport("libcomWrapper.so")]
|
||||
public static extern int com_set_interface_attribs(int fd, int speed, int data_bits, int parity_bit, int stop_bit);
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче