先封装一下tcp的socket套接字socket_core.dartimport'dart:io';import'package:flutterrobot/common/const...
文档 文档版本有些老 使用 dio 来获取数据 demo import 'dart:io'; import 'dart:convert'; import 'package:flutter/material.dart'; void main() => runApp(new MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( ...
https://github.com/DragonX-cloud/dji_flutter_plugin/blob/main/example/lib/example.dart Getting continuous updates of the Drone Status We want the drone to to send us statuses. This is handled by theDjiFlutterApiclass. TheDjiFlutterApi.setStatus(Drone drone)method is triggered by the native pl...
import 'package:web_socket_channel/io.dart';import 'package:web_socket_channel/status.dart' as ...
(package:flutter/src/foundation/synchronous_future.dart:38:29) [ +1 ms] I/flutter ( 2227): #6 ImageProvider.resolve (package:flutter/src/painting/image_provider.dart:263:30) [ +10 ms] I/flutter ( 2227): #7 _ImageState._resolveImage (package:flutter/src/widgets/image.dart:526:20) [...
staticconstStringtype='_bonsoirdemo._tcp'; discovery.dart: No change is needed. service_list.dart: Add an elevated button to trigger the web socket connection. classItemWidgetStateextendsState<ItemWidget>{IOWebSocketChannel?_channel;String_connectAction='Connect';bool_connected=false;void_connect(St...
run main.dart set stream key 'test' click start button Expected result start successfully Actual result Error Failed to start stream: java.net.ConnectException: Failed to connectStream Additional context Everything else works. I only get an error when I start Streaming Relevant logs output W/estrea...
https://github.com/DragonX-cloud/dji_flutter_plugin/blob/main/example/lib/example.dart Getting continuous updates of the Drone Status We want the drone to to send us statuses. This is handled by theDjiFlutterApiclass. TheDjiFlutterApi.setStatus(Drone drone)method is triggered by the native pl...
https://github.com/DragonX-cloud/dji_flutter_plugin/blob/main/example/lib/example.dart Getting continuous updates of the Drone Status We want the drone to to send us statuses. This is handled by the DjiFlutterApi class. The DjiFlutterApi.setStatus(Drone drone) method is triggered by the nat...