Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
browse.c File Reference
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "soletta.h"
#include "sol-log.h"
#include "sol-mainloop.h"
#include "sol-bluetooth.h"
#include "sol-gatt.h"

Functions

static void enabled (void *data, bool powered)
 
static void found_device (void *user_data, const struct sol_bt_device_info *device)
 
static bool notify_callback (void *user_data, const struct sol_gatt_attr *attr, const struct sol_buffer *buffer)
 
static bool on_connect (void *user_data, struct sol_bt_conn *conn)
 
static void on_disconnect (void *user_data, struct sol_bt_conn *conn)
 
static void on_error (void *user_data, int error)
 
static bool print_attr (void *user_data, struct sol_bt_conn *conn, const struct sol_gatt_attr *attr)
 
static void shutdown (void)
 
 SOL_MAIN_DEFAULT (startup, shutdown)
 
static void startup (void)
 
static bool timeout_cb (void *data)
 

Variables

static struct sol_network_link_addr browse_addr
 
static struct sol_bt_connbrowse_conn
 
static struct sol_bt_scan_pendingscan
 
static struct sol_bt_sessionsession
 
static struct sol_timeouttimeout
 

Function Documentation

static void enabled ( void *  data,
bool  powered 
)
static
static void found_device ( void *  user_data,
const struct sol_bt_device_info device 
)
static
static bool notify_callback ( void *  user_data,
const struct sol_gatt_attr attr,
const struct sol_buffer buffer 
)
static
Examples:
/src/samples/bluetooth/browse.c.

References SOL_INF, and sol_buffer::used.

Referenced by print_attr().

static bool on_connect ( void *  user_data,
struct sol_bt_conn conn 
)
static
static void on_disconnect ( void *  user_data,
struct sol_bt_conn conn 
)
static
static void on_error ( void *  user_data,
int  error 
)
static
static bool print_attr ( void *  user_data,
struct sol_bt_conn conn,
const struct sol_gatt_attr attr 
)
static
static void shutdown ( void  )
static
SOL_MAIN_DEFAULT ( startup  ,
shutdown   
)
static void startup ( void  )
static
static bool timeout_cb ( void *  data)
static

Variable Documentation

struct sol_network_link_addr browse_addr
static
struct sol_bt_conn* browse_conn
static
struct sol_bt_scan_pending* scan
static
struct sol_bt_session* session
static
struct sol_timeout* timeout
static