GithubHelp home page GithubHelp logo

Comments (5)

CWempe avatar CWempe commented on July 17, 2024

Never mind.
I used the wrong module stdio instead of raspberrypi.

from mqtt-io.

CWempe avatar CWempe commented on July 17, 2024

After #13 and #15 were fixed, I retried this.

The issue occures with raspberrypi, too.

config

mqtt:
  host: localhost
  port: 1883
  user: "***"
  password: "***"
  topic_prefix: test

gpio_modules:
  - name: raspberrypi
    module: raspberrypi

digital_outputs:
  - name: lights
    module: raspberrypi
    pin: 21
    on_payload: "ON"
    off_payload: "OFF"

output

MQTT client: Received PUBLISH (d0, q0, r0, m0), 'test/output/lights/set', ...  (2 bytes)
Received message on topic 'test/output/lights/set': b'UP'
Payload b'UP' does not relate to configured on/off values.
MQTT client: Received PUBLISH (d0, q0, r0, m0), 'test/output/lights/set', ...  (4 bytes)
Received message on topic 'test/output/lights/set': b'down'
Payload b'down' does not relate to configured on/off values.
MQTT client: Received PUBLISH (d0, q0, r0, m0), 'test/output/lights/set', ...  (4 bytes)
Received message on topic 'test/output/lights/set': b'DOWN'
Payload b'DOWN' does not relate to configured on/off values.

from mqtt-io.

flyte avatar flyte commented on July 17, 2024

I believe I know why this happens - the old Python 3 string/bytes mismatch. I'll issue a fix shortly. Thanks for another bug report!

from mqtt-io.

flyte avatar flyte commented on July 17, 2024

@CWempe Please could you try with version 0.0.11 and reopen if it's not fixed. Cheers!

from mqtt-io.

flyte avatar flyte commented on July 17, 2024

If nothing else, the new log message should provide better information now, if it's not fixed.

from mqtt-io.

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.