Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Домашнее задание

TCP-клиент умной розетки, позволяющий:

  • включать и выключать розетку,
  • запрашивать информацию о текущем состоянии и потребляемой мощности розетки.

Быстрый старт

Адреса сервисов захадкожены [::1]:50051

cargo build cargo run --bin server cargo run --bin client

Для отладки

Необходимо установить

sudo aptitude install protobuf-compiler

Используется grpcurl https://github.com/fullstorydev/grpcurl/releases

После запуска сервера

cargo run --bin server

Вывод сервера можно посмотреть выполнив команду

grpcurl -plaintext -proto ./proto/socket.proto
-d '{ "state": true }'
'[::1]:50051' socket.Socket.Switch

About

tokio + tonic + protobuf

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages