File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22[submodule "dev/OpenOCD "]
33 path = dev/OpenOCD
44 url = https://github.com/STMicroelectronics/OpenOCD.git
5+ [submodule "dev/nanopb/nanopb "]
6+ path = dev/nanopb/nanopb
7+ url = https://github.com/nanopb/nanopb.git
Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.22 )
2+
3+ set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} /nanopb/extra)
4+ find_package (Nanopb REQUIRED )
5+
6+ nanopb_generate_cpp (TARGET proto serverdata.proto )
7+
8+ target_link_libraries (${CMAKE_PROJECT_NAME} proto )
Original file line number Diff line number Diff line change 1+ serverdata.v2.ServerData.unit max_size: 15
2+ serverdata.v2.ServerData.values max_count: 5
Original file line number Diff line number Diff line change 1+ syntax = "proto3" ;
2+
3+ package serverdata.v2 ;
4+
5+ message ServerData {
6+ // ensure old type is reserved
7+ reserved 1 ;
8+ reserved "value" ;
9+
10+ string unit = 2 ;
11+ // time since unix epoch in MICROSECONDS
12+ uint64 time_us = 3 ;
13+ repeated float values = 4 ;
14+ }
You can’t perform that action at this time.
0 commit comments