github.com/binkynet/BinkyNet@v1.12.1-0.20240421190447-da4e34c20be0/apis/v1/commandstation.proto (about) 1 // Copyright 2020 Ewout Prangsma 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 // 15 // Author Ewout Prangsma 16 // 17 18 syntax = "proto3"; 19 20 package binkynet.v1; 21 22 option go_package = "github.com/binkynet/BinkyNet/apis/v1"; 23 option csharp_namespace = "BinkyNet.Apis.V1"; 24 25 import "types.proto"; 26 27 // CommandStationService is served by individual command stations to enable 28 // access to it without a network master. 29 // Command stations make themselves available in mDNS under service type "_cs._binkynet._tcp". 30 service CommandStationService { 31 // GetInfo returns information from the command station. 32 rpc GetInfo(Empty) returns (CommandStationInfo); 33 34 // Power is used to send power requests and receive power request & actual changes. 35 rpc Power(stream PowerState) returns (stream binkynet.v1.Power); 36 37 // Locs is used to control locs and get changes in loc requests & actual state back. 38 // Note: Loc.actual on incoming objects is ignored. 39 rpc Locs(stream Loc) returns (stream Loc); 40 }