Giter Club home page Giter Club logo

wechat_mqtt_esp8266_baiduiot's Introduction

微信智能小管家

Wechat mini program

Wechat MQTT ESP8266 Baidu IoT

这是一个微信小程序通过MQTT控制硬件(ESP8266)的Demo,教你通过微信小程序控制自己的硬件。相关文章在知乎专栏: IAMLIUBO的神奇物联网之旅 可以查看。

演示视频地址:B站-微信小程序控制硬件

iOS版微信无法连接百度天工MQTT服务器,暂时不知道为什么,建议先使用Android版微信测试

请依次修改图片中标注的地方,如果还没有注册百度天工账号,可以先用这个账号体验,不确保可以使用多长时间,但是微信小程序的Appid一定要换成你自己的,因为不替换没法使用,页面布局可以根据你的需要自己修改,请忽略我的渣布局~

设备端代码:

官方SDK版本:Wechat_MQTT_BaiduIoT(SDK)

Arduino版本:Wechat_MQTT_BaiduIoT(Arduino)

PS:使用我的百度天工账号体验,一定要记得勾选不校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书,如果不勾选是没法连接百度天工MQTT服务器的。

修改Appid

Wechat mini program

修改百度天工 IoT Hub账号和连接的网址

Wechat mini program

修改需要订阅的主题

Wechat mini program

Thankful:

微信小程序MQTT架构-爱吃猫粮的鱼

wechat_mqtt_esp8266_baiduiot's People

Contributors

imliubo avatar

Watchers

Yu DieGui avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.