// 网关附近设备扫描 syntax = "proto3"; package main; option go_package = "./spb"; message DeviceScanReq { int32 Timeout = 1; // 扫描超时时间,单位为秒 } // 表示蓝牙设备的信息 message BluetoothDevice { string Name = 1; // 设备名称,例如 "Bluetooth Speaker" string Address = 2; // MAC 地址,格式如 "00:11:22:33:44:55" int32 Rssi = 3; // 信号强度 (RSSI),例如 -45 表示较强信号 string DeviceType = 4; // 设备类型,例如 "audio", "keyboard", "mouse" repeated string Services = 5; // 支持的服务 UUID 列表,例如 "0000110b-0000-1000-8000-00805f9b34fb" } // 蓝牙扫描的结果响应 message DeviceScanResp { repeated BluetoothDevice Devices = 1; // 扫描到的蓝牙设备列表 int64 ScanStartTime = 2; // 扫描开始时间,Unix 时间戳(秒) int64 ScanEndTime = 3; // 扫描结束时间,Unix 时间戳(秒) }