Closed PS-O5 closed 2 years ago
This package bases on the c_pheriphery libraty, which is only availble for Linux. The pub.dev publish system doesn' t support the explicit exlcusion of an operating system. Therefore this Linux only package is shown as windows compatible package.
I tried to use this library and ran it's serial example to build an application for windows but got following log in the console with errors: Launching lib\main.dart on Windows in debug mode... Building Windows application... Debug service listening on ws://127.0.0.1:58318/q5IEvw4shNs=/ws Syncing files to device Windows... flutter: Serial test - COZIR CO2 Sensor [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: dart_periphery is only supported for Linux!
0 getPeripheryLib (package:dart_periphery/src/library.dart:173:5)
1 _peripheryLib (package:dart_periphery/src/signature.dart:12:38)
2 _peripheryLib (package:dart_periphery/src/signature.dart)
3 voidPtrVOIDM (package:dart_periphery/src/signature.dart:24:10)
4 _nativeSerialNew (package:dart_periphery/src/serial.dart:143:26)
5 _nativeSerialNew (package:dart_periphery/src/serial.dart)
6 Serial._openSerial (package:dart_periphery/src/serial.dart:379:25)
7 new Serial (package:dart_periphery/src/serial.dart:376:25)
8 main (package:periserial/main.dart:9:11)
9 _runMainZoned.. (dart:ui/hooks.dart:130:25)
10 _rootRun (dart:async/zone.dart:1426:13)
11 _CustomZone.run (dart:async/zone.dart:1328:19)
12 _runZoned (dart:async/zone.dart:1861:10)
13 runZonedGuarded (dart:async/zone.dart:1849:12)
14 _runMainZoned. (dart:ui/hooks.dart:126:5)
15 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:297:19)
16 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)