Giter Site home page Giter Site logo

DateTime über MQTT about bsb-lan HOT 6 CLOSED

fredlcore avatar fredlcore commented on May 18, 2024
DateTime über MQTT

from bsb-lan.

Comments (6)

dukess avatar dukess commented on May 18, 2024

Hi!
Try to add parameter No. 0 in log_parameters array in BSB_lan_config.h

from bsb-lan.

hvorragend avatar hvorragend commented on May 18, 2024

Really? How can an additional parameter 0 change the format of another parameter?

from bsb-lan.

dukess avatar dukess commented on May 18, 2024

Oops. My mistake.
I look on code. I think this is because the date and time string contains a whitespace.
MQTTClient.publish(MQTTTopic.c_str(), strtok(query(log_parameters[i],log_parameters[i],1)," "));

from bsb-lan.

fredlcore avatar fredlcore commented on May 18, 2024

Yes, that is the problem. Some users wanted the unit to be stripped from the actual value, so the general approach was to drop everything following the first whitespace. In the case of date and time, this obviously does not work and I'll have to hard-code this into the JSON output.

from bsb-lan.

fredlcore avatar fredlcore commented on May 18, 2024

New version online, please check with current master branch if date and time are now transmitted correclty via MQTT and report back here.

from bsb-lan.

hvorragend avatar hvorragend commented on May 18, 2024

Again, thank you very much. It works perfectly fine.

from bsb-lan.

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.