Skip to content

Instantly share code, notes, and snippets.

@bus710
bus710 / bleCore.dart
Last active January 3, 2023 19:38
How to use flutter_blue in general
import 'dart:async';
/* If there is an error that points about the minSdkVersion,
change the number (minSdkVersion 16) to 19 in $PROJECT_ROOT/android/app/build.gradle */
// example: https://github.com/pauldemarco/flutter_blue/tree/master/example/lib
import 'package:flutter_blue/flutter_blue.dart'; // for BLE
import 'package:flutter/material.dart';
import 'utils/enums.dart';
class BLEData {
// "00010000-0002-1000-8000-00805f9b34fb"