Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openiothub/openiothub_plugin
OpenIoTHub UI plugin
https://github.com/openiothub/openiothub_plugin
iot
Last synced: 4 days ago
JSON representation
OpenIoTHub UI plugin
- Host: GitHub
- URL: https://github.com/openiothub/openiothub_plugin
- Owner: OpenIoTHub
- License: other
- Created: 2021-01-05T14:15:01.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-10T09:38:09.000Z (3 months ago)
- Last Synced: 2024-08-10T15:10:32.270Z (3 months ago)
- Topics: iot
- Language: Dart
- Homepage:
- Size: 609 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# openiothub_plugin
#### 云易连APP的UI部分插件,通过添加UI插件以支持更多的
[物联网设备](./lib/plugins/mdnsService/devices)和[私有云服务](./lib/plugins/mdnsService/mDNSService)
#### 开发云易连插件需要包含三步:
* 在[设备模型目录](./lib/plugins/mdnsService/devices)或者
[私有云服务目录](./lib/plugins/mdnsService/mDNSService)创建对应的界面模型
* 将上述创建的页面引入到[components.dart](./lib/plugins/mdnsService/components.dart)
* 将创建的页面在[modelsMap.dart](./lib/plugins/mdnsService/modelsMap.dart)中的map里面注册(map的key是设备或者模型的名称,值是页面)#### 例如:
创建一个[oneKeySwitch.dart](lib/plugins/mdnsService/devices/local/oneKeySwitch.dart)页面
然后在[components.dart](./lib/plugins/mdnsService/components.dart#L5)引入
然后在[modelsMap.dart](./lib/plugins/mdnsService/modelsMap.dart#L9)中注册#### 插件规范:
目前插件规范是引入一个PortService模型,页面根据PortService中保存的信息进行操作
页面一个设一个名叫modelName的静态常亮,这是该模型的唯一ID
具体参考目前的插件页面例子## Getting Started
This project is a starting point for a Dart
[package](https://flutter.dev/developing-packages/), a library module containing code that can be
shared easily across multiple Flutter or Dart projects.For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials, samples, guidance on
mobile development, and a full API reference.