# dgiot-mqtt2eventbus **Repository Path**: zdp_git/dgiot-mqtt2eventbus ## Basic Information - **Project Name**: dgiot-mqtt2eventbus - **Description**: 物联网协议微服务,实现vue前端页面的mqtt转vue的消息微服务,让vue各个组件之间通过消息通讯,而不是通过函数调用交互,从而实现代码解耦,类似移动端app的消息通讯架构:消息服务(mqtt)--》 eventbus--》view - **Primary Language**: Unknown - **License**: MPL-2.0 - **Default Branch**: master - **Homepage**: https://github.com/dgiot/dgiot - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 882 - **Created**: 2023-02-20 - **Last Updated**: 2023-02-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dgiot-mqtt-dashboard

ommit-activity package Npm Version Node Version
Jsdeliver Month Downloads Install Size Type Support
Outdated Dep Vulnerablities License

![微服务架构图_02.png](https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/shuwa_tech/zh/frontend/web/%E5%BE%AE%E6%9C%8D%E5%8A%A1%E6%9E%B6%E6%9E%84%E5%9B%BE_02.png) ## Installation ```bash yarn add @dgiot/dgiot-mqtt-dashboard ``` ## Quick Start ### [main.js](https://github.com/dgiot/dgiot-Component-example/blob/master/src/main.js) ```diff import Vue from 'vue' import App from './App.vue' +import dgiotStore from '@dgiot/dgiot-mqtt-dashboard/src/store' +import dgiotBus from '@dgiot/dgiot-mqtt-dashboard/src/utils/bus' +import dgiotMixin from '@dgiot/dgiot-mqtt-dashboard/src/mixins/mqtt' Vue.use(dgiotBus) Vue.mixin(dgiotMixin) Vue.config.productionTip = false new Vue({ dgiotStore, render: h => h(App), }).$mount('#app') ``` ### [examples.vue](https://github.com/dgiot/dgiot-Component-example/blob/master/src/App.vue) ```diff ``` ### Online examples [![Edit gmullerb-react-reducer-provider](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/dgiot/dgiot-mqtt-dashboard)