SPIKE-RT C API Reference [English]
An RTOS-based software platform for LEGO® Education SPIKE™.
Loading...
Searching...
No Matches
bluetooth.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2/*
3 * API for the bluetooth.
4 *
5 * Copyright (c) 2023 Embedded and Real-Time Systems Laboratory,
6 * Graduate School of Information Science, Nagoya Univ., JAPAN
7 */
8
34#ifndef _SPIKE_HUB_BLUETOOTH_H_
35#define _SPIKE_HUB_BLUETOOTH_H_
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41#include <pbio/error.h>
42#include <stdbool.h>
43
57pbio_error_t hub_bluetooth_enable_advertising(void);
58
70pbio_error_t hub_bluetooth_disable_advertising(void);
71
85pbio_error_t hub_bluetooth_is_connected(bool *connected);
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif // _SPIKE_HUB_BLUETOOTH_H_
92
pbio_error_t hub_bluetooth_disable_advertising(void)
Disable the bluetooth advertising.
Definition bluetooth.c:25
pbio_error_t hub_bluetooth_is_connected(bool *connected)
Check whether the bluetooth is connected.
Definition bluetooth.c:33
pbio_error_t hub_bluetooth_enable_advertising(void)
Enable the bluetooth advertising.
Definition bluetooth.c:17