Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- message msg {
- enum MsgType {
- OKAY = 1; // wszystko ok
- ZONK = 2; // coś nie tak
- TIMEOUT = 3; // przekroczenie limitu czasu
- MEASURMENT = 5; // dane pomiarowe z urządzenia
- CONTROL = 6; // polecenie sterowania urządzeniem
- HELLO = 8; // rejestracja klienta u mediatora
- DEVS_REQ = 9; // pobranie listy modułów
- DEVS_LST = 10; // lista modułów
- DEV_LISTEN = 11; // (A) nasłuch na danym module
- DEV_LEAVE = 12; // (AI) koniec nasłuchu na podanym module
- DEV_TAKE = 13; // (A) wyłączność do zapisu do urządzenia
- DEV_RELEASE = 14; // (AI) oddanie zapisu od urządzenia
- KTHXBYE = 15; // wylogowanie klienta od mediatora
- }
- required MsgType type = 1; // typ wiadomości
- optional int32 id = 2; // id nadawcy (ustala mediator)
- repeated int32 receivers = 3 [packed = true]; // identyfikacja odbiorców (rozumiane przez mediatora)
- repeated int32 modules_id = 5 [packed = true]; // lista modułów
- optional int32 ext_id = 4; // numer rozszerzenia
- extensions 8 to 63;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement