Code Monkey home page Code Monkey logo

Comments (6)

freechw avatar freechw commented on July 30, 2024

and can you update PubsubClient to V2.8?

from mqttsn.

freechw avatar freechw commented on July 30, 2024

I knows where is the problem, because esp8266_hc12_gateway example lost mqttc.loop();
I add it, and now run OK. but the new error is:

`[+]Got SUBSCRIBE.
[+]Topic name: led, ID: 1
[+]SUBACK sent.
[+]MQTT SUBSCRIBE to esp8266mqttsn/led.
[+]
[+]Got PUBLISH.
[+]MQTT PUBLISH to esp8266mqttsn/led

[+]Got MQTT PUBLISH to esp8266mqttsn/led.
[+]Dispatching msgs.
Fatal exception 28(LoadProhibitedCause):epc1=0x40201be6, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Exception (28):
epc1=0x40201be6 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

stack>>>

ctx: cont
sp: 3ffffda0 end: 3fffffc0 offset: 0190
3fffff30: 3fffdad0 3fff0631 3ffee72c 40201b71
3fffff40: 00010000 00000000 3fff0600 3fff0638
3fffff50: 3fffda01 3ffe080c 3ffee9fe 40201d81
3fffff60: 3ffefdfc 3ffefce8 3ffeea00 00000001
3fffff70: 00000000 00000000 3fff07f4 3fff0870
3fffff80: 00000000 00000000 00000001 3fff0870
3fffff90: 3fffdad0 00000000 3fff0830 40201297
3fffffa0: feefeffe 00000000 3fff0830 402065a4
3fffffb0: feefeffe feefeffe 3ffe8508 40101851
<<<stack<<<
--------------- CUT HERE FOR EXCEPTION DECODER ---------------H≈?�1?)?
SDK:2.2.2-dev(38a443e)/Core:2.7.3-3-g2843a5ac=20703003/lwIP:STABLE-2_1_2_RELEASE/glue:1.2-30-g92add50/BearSSL:5c771be
`
I will try to resolve it.
Thanks a lot, this is a awesome project.

from mqttsn.

freechw avatar freechw commented on July 30, 2024

Now I found a bug in mqttgateway.cpp loop function,
if (clnt.is_subbed(tid))
maybe is:
if (!clnt.is_subbed(tid))

when I fix it, now run OK.

from mqttsn.

brianrho avatar brianrho commented on July 30, 2024

Sorry, I have no idea how I totally missed this issue all this time. Thanks for letting me know, will look into and fix that.

from mqttsn.

brianrho avatar brianrho commented on July 30, 2024

Done. You can reopen the issue if you still get the exception.

from mqttsn.

brianrho avatar brianrho commented on July 30, 2024

For your question on upgrading the pubsubclient version, I really don't want to have to maintain my pubsubclient changes, especially as the upstream pubsubclient diverges (however slowly). Instead, I'll provide a different MQTT-interface example using this library, that already contains the features I need, and is a richer MQTT client anyways.

from mqttsn.

Related Issues (1)

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.