/* | |
* Copyright (c) 2022 Nordic Semiconductor ASA | |
* | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
#include <zephyr/sys/printk.h> | |
#include <zephyr/bluetooth/bluetooth.h> | |
int observer_start(void); | |
void main(void) | |
{ | |
int err; | |
printk("Starting Observer Demo\n"); | |
/* Initialize the Bluetooth Subsystem */ | |
err = bt_enable(NULL); | |
if (err) { | |
printk("Bluetooth init failed (err %d)\n", err); | |
return; | |
} | |
(void)observer_start(); | |
printk("Exiting %s thread.\n", __func__); | |
} |