Git Product home page Git Product logo

esp-csi-wechat's Introduction

ESP CSI 小程序构建说明

使用小程序开发工具将代码导入

应用端程序点击这里跳转

云函数

由于使用微信登录获取云端数据是要用到微信的 openId,这里将通过云函数直接获取

首先修改 appid

创建云函数

点击新建云函数(由于代码中已经建好了一个 ‘login’ 的函数,需在该处创建一个同名)

云函数创建好之后本地同步

开发工具配置

小程序配置

需将 appkey 和 secretKey改为用户自己在腾讯云创建的应用中小程序应用的 appkey 和 secretKey

小程序扫描设备二维码

由于小程序没有发布,添加设备只能扫描手动创建的设备信息二维码

二维码格式

{"name": 'xxxxx', "productId": "xxxxxxx"}

文件目录介绍

ec-canvas:该文件夹下放的是Echarts图表 js 文件

fonts: 该文件夹下放的是字体图标文件

js: 该文件夹下放的是项目使用到的加密 js 文件

proto:该文件夹下放的是根据板子定义的协议转换而成的 js 文件

utils: 一些共用方法

proto-custom.js: 与板子交互的解析、加密等方法
qcloud.js: 与云端交互的方法

weichatPb:该文件夹下放的是使小程序支持protobuf的 js 文件

esp-csi-wechat's People

Contributors

espressifapp avatar

Stargazers

Fusss avatar  avatar

Watchers

James Cloos avatar  avatar  avatar huangxiaohui avatar

Forkers

pschen winscat

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.