BLUETOOTH APPLICATION PROGRAMMING WITH THE JAVA APIS ESSENTIALS EDITION PHẦN 7

Sự kiện deviceDiscovered () cung cấp cho đối tượng RemoteDevice DeviceClass liên quan đến đối tượng mỗi khi sự kiện xảy ra. Các đối tượng RemoteDevice cung cấp địa chỉ Bluetooth của một thiết bị Bluetooth từ xa cùng với các phương pháp để lấy lại cái tên thân thiện và kiểm soát an ninh cho các thiết bị từ xa. | 168 Chapter Seven Service Discovery Table Methods That Create a Service Record Protocol Interface Methods Specifications btspp Connector open url open url mode open url mode timeout CLDC btl2cap Connector open url open url mode open url mode timeout CLDC btgoep Connector open url open url mode open url mode timeout CLDC Table Methods That Add Service Records to the SDDB Protocol Interface Methods Specification btspp btl2cap bt goep StreamConnectionNotifier L2CAPConnectionNotifier SessionNotifier acceptAndOpen acceptAndOpen acceptAndOpen handler acceptAndOpen handler authenticator CLDC JABWT JABWT Each client accesses the same service record and connects to the service using the same RFCOMM server channel. If the underlying Bluetooth system does not support multiple connections then the implementation of acceptAndOpen throws a BluetoothStateException. L2CAP and OBEX over RFCOMM services also can accept multiple clients. A ServiceRegistrationException is thrown by all of the acceptAndOpen methods in Table if they fail to add a service record to the SDDB. API Capabilities 169 Table Methods That Remove or Disable Service Records Protocol Interface Methods Specification btspp StreamConnectionNotifier close CLDC bt12 cap L2 CAPConnect ionNotifier close CLDC btgoep SessionNotifier close CLDC Remove the Service Record from the SDDB Once the notifier associated with a run-before-connect service is closed it is no longer possible to call acceptAndOpen to accept another client connection. For this reason the JABWT implementation removes the service record from the SDDB or disables the service record. Table shows the different types of notifiers that add this behavior to the close method inherited from the GCF interface . Modifications to Service Records In many cases it is desirable to modify the service record created by the JABWT implementation. For example if your service corresponds to a Bluetooth profile you will

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
29    177    4    30-04-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.