Skip to content

Commit cf90e4c

Browse files
committed
Print repo and pouch protocol versions at boot
Signed-off-by: Sam Friedman <[email protected]>
1 parent dca1008 commit cf90e4c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

gateway/src/main.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@
1414

1515
#include <gateway/bt/scan.h>
1616

17+
#include <pouch/transport/ble_gatt/common/types.h>
18+
1719
#include "cert.h"
1820
#include "downlink.h"
1921
#include "uplink.h"
2022

23+
#include <git_describe.h>
24+
2125
#include <zephyr/logging/log.h>
2226
LOG_MODULE_REGISTER(main);
2327

@@ -104,15 +108,16 @@ static inline void connect_to_cloud(void) {}
104108

105109
int main(void)
106110
{
107-
int err;
111+
LOG_INF("Gateway Version: " STRINGIFY(GIT_DESCRIBE));
112+
LOG_INF("Pouch BLE Transport Protocol Version: %d", GOLIOTH_BLE_GATT_VERSION);
108113

109114
connect_to_cloud();
110115

111116
cert_module_on_connected(client);
112117
pouch_uplink_init(client);
113118
downlink_module_init(client);
114119

115-
err = bt_enable(NULL);
120+
int err = bt_enable(NULL);
116121
if (err)
117122
{
118123
LOG_ERR("Bluetooth init failed (err %d)", err);

0 commit comments

Comments
 (0)