안드로이드에서 블루투스 시리얼 장치와 연결하고 통신하기 위한 가벼운 플러터 패키지입니다. 센서, 마이크로컨트롤러 또는 맞춤형 IoT 장치와 같은 호환 가능한 하드웨어와 표준 블루투스 시리얼 프로토콜을 사용하여 양방향 데이터 전송을 가능하게 합니다. 이 라이브러리는 저수준 블루투스 작업을 추상화하여 스캔, 페어링 및 데이터 전송/수신을 위한 사용하기 쉬운 API를 제공합니다. 안드로이드 전용으로 설계되어 복잡한 설정 없이 기본적인 블루투스 기능을 지원합니다.
사용 사례
아두이노 기반 장치에 연결
블루투스 모듈에서 센서 데이터 전송
블루투스를 통한 사물인터넷 장치 제어
사용자 정의 하드웨어 주변 장치와의 통합
모바일 앱에서 실시간 데이터 교환 활성화
주요 기능
블루투스 통신을 위한 간단한 API
Android 전용 지원
양방향 데이터 전송
장치 탐지 및 페어링
경량이며 최소한의 종속성
적합한 대상
IoT 애플리케이션 개발자
하드웨어 통합 프로젝트
교육 로보틱스
임베디드 시스템 프로토타이핑
Android 전용 블루투스 애플리케이션
고려 사항
Android 플랫폼에 한정
iOS 지원 없음
매니페스트에서 블루투스 권한이 필요합니다
시리얼 프로토콜과 장치 호환성에 따라 다릅니다
고급 블루투스 프로파일이 없는 기본 기능 세트
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
flutter_bluetooth_serial
Flutter basic implementation for Classical Bluetooth (only RFCOMM for now).
Features
The first goal of this project, started by @edufolly was making an interface for
Serial Port Protocol (HC-05 Adapter). Now the plugin features:
Sending and receiving data (multiple connections).
The plugin (for now) uses Serial Port profile for moving data over RFCOMM, so
make sure there is running Service Discovery Protocol that points to SP/RFCOMM
channel of the device. There could
be max up to 7 Bluetooth connections.
For now there is only Android support.
Funding
Your contribution will help drive the development of quality tools for the
Flutter and Dart developer community. Any amount will be appreciated. Thank you
for your continued support!
PIX
Sua contribuição ajudará a impulsionar o desenvolvimento de ferramentas de
qualidade para a comunidade de desenvolvedores Flutter e Dart. Qualquer quantia
será apreciada. Obrigado pelo seu apoio contínuo!
Getting Started
Depending
# Add dependency to `pubspec.yaml` of your project.dependencies:# ...flutter_bluetooth_serial:^0.4.0