Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: AutoCreate method for DeviceManager #11

Merged

Conversation

RaulTrombin
Copy link
Member

@RaulTrombin RaulTrombin commented Aug 1, 2024

Needs:

Details:

pi@raspbian-armv7-kernel-5:~/deploy $ ./ping-viewer-next --log-current-crate-only --enable-auto-create
2024-08-01T19:58:37.269940Z  INFO main ThreadId(01) src/logger/manager.rs:94: ping-viewer-next, version: 0.0.0-17c4ed001ee17f263ef4cd5f50b9d13bead8f7b5, build date: 2024-08-01
2024-08-01T19:58:37.270141Z  INFO main ThreadId(01) src/logger/manager.rs:102: Build dependencies details: actix 0.13.5,actix-web 4.6.0,actix-web-actors 4.3.0,bluerobotics-ping 0.3.0,chrono 0.4.38,clap 4.5.4,lazy_static 1.4.0,mime_guess 2.0.5,paperclip 0.8.2,regex 1.10.5,rust-embed 8.5.0,serde 1.0.202,serde_json 1.0.117,thiserror 1.0.61,tokio 1.38.0,tokio-serial 5.4.4,tracing 0.1.40,tracing-appender 0.2.2-with-filename-suffix,tracing-log 0.2.0,tracing-subscriber 0.3.18,tracing-tracy 0.11.0,udp-stream 0.0.12,uuid 1.8.0,validator 0.18.1
2024-08-01T19:58:37.270404Z  INFO main ThreadId(01) src/logger/manager.rs:107: Starting at 2024-08-01T20:58:37
2024-08-01T19:58:37.562689Z  INFO main ThreadId(01) src/device/manager.rs:384: New device created and available, details: DeviceInfo([DeviceInfo { id: 00000000-0000-0000-6113-f5df77d4fbd6, source: SerialStream(SourceSerialStruct { path: "/dev/ttyUSB1", baudrate: 115200 }), status: ContinuousMode, device_type: Ping1D }])
2024-08-01T19:58:37.675212Z  INFO main ThreadId(01) src/device/manager.rs:384: New device created and available, details: DeviceInfo([DeviceInfo { id: 00000000-0000-0000-1cc4-7b702224f52d, source: SerialStream(SourceSerialStruct { path: "/dev/ttyUSB0", baudrate: 115200 }), status: ContinuousMode, device_type: Ping1D }])
2024-08-01T19:58:37.675329Z  INFO main ThreadId(01) src/main.rs:24: DeviceManager initialized with following devices: DeviceInfo([DeviceInfo { id: 00000000-0000-0000-6113-f5df77d4fbd6, source: SerialStream(SourceSerialStruct { path: "/dev/ttyUSB1", baudrate: 115200 }), status: ContinuousMode, device_type: Ping1D }, DeviceInfo { id: 00000000-0000-0000-1cc4-7b702224f52d, source: SerialStream(SourceSerialStruct { path: "/dev/ttyUSB0", baudrate: 115200 }), status: ContinuousMode, device_type: Ping1D }])
2024-08-01T19:58:37.675418Z  INFO main ThreadId(01) src/server/manager.rs:18: ServerManager: Service starting
2024-08-01T19:58:37.675482Z  INFO tokio-runtime-worker ThreadId(02) src/device/manager.rs:250: DeviceManager is running
2024-08-01T19:58:37.676011Z  INFO                 main ThreadId(01) src/server/manager.rs:37: ServerManager: HTTP server running at http://0.0.0.0:8080

@RaulTrombin RaulTrombin force-pushed the auto_create_serial branch 4 times, most recently from 4292bfd to a30b74f Compare August 6, 2024 19:12
@RaulTrombin RaulTrombin marked this pull request as ready for review August 6, 2024 19:13
Copy link
Member

@joaoantoniocardoso joaoantoniocardoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a minor

src/main.rs Outdated Show resolved Hide resolved
@joaoantoniocardoso joaoantoniocardoso merged commit c78cb89 into bluerobotics:master Aug 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants