GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DC_BLUETOOTH_OPEN(3) FreeBSD Library Functions Manual DC_BLUETOOTH_OPEN(3)

dc_bluetooth_openOpens an iostream for a bluetooth device

library “libdivecomputer”

#include <libdivecomputer/bluetooth.h>

dc_status_t
dc_bluetooth_open(dc_iostream_t **iostream, dc_context_t *context, dc_bluetooth_address_t address, unsigned int port);

Opens an iostream for a bluetooth device. Accepts a context opened with dc_context_new(3), a 48-bit bluetooth address given by dc_bluetooth_iterator_new(3) together with dc_bluetooth_device_get_address(3) or dc_bluetooth_str2addr(3) and a bluetooth rfcomm port number (use 0 for autodetection).

Upon returning DC_STATUS_SUCCESS, the iostream pointer must be freed with dc_iostream_close(3).

Returns DC_STATUS_SUCCESS on success or one of several error values on error. On success, the iostream pointer is filled in with an open handle.

dc_context_new(3), dc_iostream_close(3), dc_serial_open(3), dc_irda_open(3), dc_usbhid_open(3), dc_bluetooth_iterator_new(3), dc_bluetooth_device_get_address(3), dc_bluetooth_str2addr(3),

The library “libdivecomputer” library was written by Jef Driesen, jef@libdivecomputer.org.
This manpage is written by
Vincent Hagen, vinnie@script4web.nl.

June 5, 2020 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.