SPIKE-RT C API Reference [Japanese]
An RTOS-based software platform for LEGO® Education SPIKE™.
bluetooth.h
[詳解]
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#include <pbio/error.h>
38#include <stdbool.h>
39
53pbio_error_t hub_bluetooth_enable_advertising(void);
54
66pbio_error_t hub_bluetooth_disable_advertising(void);
67
81pbio_error_t hub_bluetooth_is_connected(bool *connected);
82
83
84#endif // _SPIKE_HUB_BLUETOOTH_H_
85
pbio_error_t hub_bluetooth_disable_advertising(void)
Bluetoothのアドバタイジング(接続待ち)を禁止する.
Definition: bluetooth.c:25
pbio_error_t hub_bluetooth_is_connected(bool *connected)
Bluetoothが接続されているかどうかを検出する.
Definition: bluetooth.c:33
pbio_error_t hub_bluetooth_enable_advertising(void)
Bluetoothのアドバタイジング(接続待ち)を許可する.
Definition: bluetooth.c:17