12345678910111213141516171819202122 |
- syntax = "proto2";
- package plc_module;
- message plc_connection_params{
- required string ip=1;
- required int32 port=2;
- required int32 slave_id=3;
- }
- enum PLC_STATUS
- {
- ePLCConnected=0;
- ePLCDisconnected=1;
- ePLCRefused=2;
- ePLCUnknown=3;
- }
- message Plc_msg
- {
- optional PLC_STATUS status=1;
- repeated int32 plc_values=2;
- }
|