Urgent.News

What's breaking now, across hundreds of outlets.

Tech

bluetooth_spp: منفذ Bluetooth Classic التسلسلي في Flutter لأجهزة OBD والطابعات

أغلب إضافات Bluetooth في Flutter تخص Bluetooth Low Energy. لكن عتادًا كثيرًا ما زال يتكلم البروتوكول الأقدم: قطع ELM327 لمنفذ OBD-II في السيارات، والطابعات الحرارية، والموازين، وقارئات الباركود، ووحدات HC-05. هذه الأجهزة تعرض منفذًا تسلسليًّا (serial port) فوق Bluetooth Classic، يُعرف بـ RFCOMM أو SPP، وهو من جهة التطبيق تدفق بايتات بسيط. تكتب بايتات وتقرأ بايتات. bluetooth_spp إضافة (plugin) لـ…

Original Arabic headline Read in English

Bluetooth Serial Port Plugin for Flutter, known as bluetooth_spp, enables communication with OBD-II devices, thermal printers, scales, barcode readers, and HC-05 modules via a serial port on Bluetooth Classic (RFCOMM/SPP). The plugin offers a clean-room implementation alternative to flutter_bluetooth_serial, featuring an adapter stream, isEnabled() function, requestEnable() function, bondedDevices() function for paired device details, startDiscovery() for device discovery, bond(address) and removeBond(address) for pairing and unpairing, connect() for establishing connections, SppConnection with input, write(bytes), close(), disconnectReason, and multi-connection support with separate input/output threads.

The plugin provides secure socket options, error handling without main thread blocking, and specific Dart exceptions for different error types. It requires appropriate permissions in the manifest for Android 12 and later (BLUETOOTH_CONNECT, BLUETOOTH_SCAN, and BLUETOOTH_ADMIN with maxSdkVersion="30"), and older versions require BLUETOOTH and BLUETOOTH_ADMIN with maxSdkVersion="30".

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

More from Dev.to on urgent.news

Get the news by email. Yesterday's most-covered stories, every morning.

See today's edition · More options

More in Tech

Apple’s Best iPhone Apps of 2026 Might Surprise You

Apple has announced the winners of its 2026 App Store Awards, recognizing 17 applications and games selected from 45 finalists …

  • Not Boring's camera app wins iPhone App of the Year award
  • Krager Labs' Hearing Buddy receives Cultural Impact award
  • Unique camera app and real-time transcription service stand out

The Ups and Downs of Robot Sounds

Some of the most beloved robots of science fiction don’t use speech to communicate. Instead, robots like R2-D2, WALL-E, and Iron Giant rely on functional sounds (beeps, whirs), transformative sounds…

Sanity and Next.js for a B2B marketing site: what to look for

If you run marketing for a B2B company and you are shopping for a Sanity and Next.js agency for a B2B marketing site, the question is not whether the stack is good. It is.

  • B2B marketing site requires lead-gen components and SEO-optimized pages for commercial searches.
  • Agency should provide block library with limited fields for consistent brand editing.
  • Forms must capture UTM parameters and ensure seamless user experience despite CRM failures.

More from Saturday, 5 December 2026 →