Giter Club home page Giter Club logo

Comments (1)

peter-valkov avatar peter-valkov commented on August 12, 2024

It has a meaning when you have more then one device/module attached. The ESP8266 device is used for generic messages. Each device uses its own name.

For example I have setup with MOD-TC-MK2 and 6 x MOD-LED8x8RGB as array all connected to ESP8266-EVB via UEXT. So I'm receiving messages like

{"Device" : "ESP8266", "Status" : "Authorization success"}
{"Device": "MOD-LED8x8RGB", "Status": "OK","Data": { "cols": 6, "rows": 1, "Speed": 85, "R": 0, "G": 1,"B": 0, "Text": "October 27 17:07 Thursday" }}
{"Device" : "MOD-TC-MK2", "Status" : "OK", "Data" : {"Temperature" : 23.93}, "I2C_Address" : "0x23"}
{"Device" : "MOD-LED8x8RGB", "Status" : "Done"}

As you can see different devices send different Data object. And the value of Device field is used to distinguish what kind of data can be found in Data object

Hope that this makes sense to you.

from esp8266.

Related Issues (20)

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.