Giter Site home page Giter Site logo

fog's Introduction

FogCloudSDK

开发流程

使用庆科的WIFI模块,但是云平台并非庆科云,开发流程如下

  1. APP端启用EasyLink发送配网的数据包(SSID, PASSWORD), 发送频率建议为50ms-200ms
  2. 设备收到数据包后会自动连接上WIFI路由器,并开启mDNS服务
  3. APP在打开EasyLink的同时,打开mDNS,来搜索设备

可能会搜索到多个设备,这时候需要解析收到的信息,如果"IsEasylinkOK": "false",

如果IsEasylinkOK==false,说明这台设备没有被用户绑定,那么一般情况下,他就是我们刚刚EasyLink时候新配上路由器的设备

断开EasyLink和mDNS

  1. 解析出待绑定设备的IP,并通过HTTP方式连接上去(端口为8002),发送绑定请求
  2. 以上是基础配网和通信的功能,剩下来的工作视具体云平台而定

资源清单

android

iOS

状态码

状态码

其他

Fog文档

V2.0版本SDK

fog's People

Contributors

bringmehome avatar wzbdroidpersonal avatar huangjian0414 avatar mxchipdy avatar

Watchers

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.