From f51636c193d032723c47343e39ff8296db350200 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期一, 29 三月 2021 18:04:00 +0800 Subject: [PATCH] change msg to use protobuf, add more msg type. --- proto/source/bhome_msg.proto | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/proto/source/bhome_msg.proto b/proto/source/bhome_msg.proto index 01498fa..8365d2f 100644 --- a/proto/source/bhome_msg.proto +++ b/proto/source/bhome_msg.proto @@ -1,5 +1,7 @@ syntax = "proto3"; +option optimize_for = LITE_RUNTIME; + package bhome.msg; message BHAddress { @@ -22,6 +24,7 @@ kMsgTypeReply = 2; kMsgTypePublish = 3; kMsgTypeSubscribe = 4; + kMsgTypeUnsubscribe = 5; } message DataPub { -- Gitblit v1.8.0