English | 한국어 | 日本語 | Tiếng Việt
This example is a Kotlin implementation of the TS-CAM Socket.IO client. It sequentially performs the following functions:
- Discover cameras on the internal network
- Read information from the first camera (camera login required)
- Request snapshot image with license plate recognition options
- Control relay output
- Wait for events
- Check event watch list
- Stop event watching
The program waits for user input at each step and performs real-time camera control and event reception through Socket.IO server communication.
tscam-app/
├── src/
│ └── main/
│ └── kotlin/
│ └── com/example/tscam/
│ └── Main.kt
└── build.gradle.kts
- io.socket:socket.io-client:2.1.1
- org.json:json:20240303
- Kotlin 1.9.0
- Open the project in IntelliJ IDEA
- Import the Gradle project (using Groovy DSL)
- Build the project
- Run the program
- Open the project directory
- Open the terminal
- Build the project
# Windows gradlew build # Linux gradlew build
- Run the program
# Windows gradlew --console=plain run # Linux ./gradlew --console=plain run