Add Bluetooth examples
Co-authored-by: Peter Harper <77111776+peterharperuk@users.noreply.github.com>
This commit is contained in:
22
pico_w/bt/standalone/server_common.h
Normal file
22
pico_w/bt/standalone/server_common.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Copyright (c) 2023 Raspberry Pi (Trading) Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef SERVER_COMMON_H_
|
||||
#define SERVER_COMMON_H_
|
||||
|
||||
#define ADC_CHANNEL_TEMPSENSOR 4
|
||||
|
||||
extern int le_notification_enabled;
|
||||
extern hci_con_handle_t con_handle;
|
||||
extern uint16_t current_temp;
|
||||
extern uint8_t const profile_data[];
|
||||
|
||||
void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size);
|
||||
uint16_t att_read_callback(hci_con_handle_t connection_handle, uint16_t att_handle, uint16_t offset, uint8_t * buffer, uint16_t buffer_size);
|
||||
int att_write_callback(hci_con_handle_t connection_handle, uint16_t att_handle, uint16_t transaction_mode, uint16_t offset, uint8_t *buffer, uint16_t buffer_size);
|
||||
void poll_temp(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user