Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscribe example script with loop_forever doesn't work #19

Closed
scls19fr opened this issue Feb 29, 2024 · 5 comments
Closed

Subscribe example script with loop_forever doesn't work #19

scls19fr opened this issue Feb 29, 2024 · 5 comments

Comments

@scls19fr
Copy link
Contributor

scls19fr commented Feb 29, 2024

Hello,

Example https://github.com/denglerchr/Mosquitto.jl/blob/main/examples/07_loop_forever.jl only displays

Connection of client 6BApxz7wOpbK13E successfull (MOSQ_ERR_SUCCESS), subscribing to test/#

no message are received (while I can see some messages with

mosquitto_sub -h test.mosquitto.org -t "test/#"

Moreover CTRL+C (or +D or +Q) doesn't quit example (I need to close console window)

OS : Windows 10
julia version 1.10.1

Kind regards

PS : I should have started with this before trying reactive notebook as mentioned in #15

@denglerchr
Copy link
Owner

Will be difficult to find, as it works for me on Windows. versioninfo():

Julia Version 1.10.1
Commit 7790d6f064 (2024-02-13 20:41 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 16 × 11th Gen Intel(R) Core(TM) i9-11900H @ 2.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, tigerlake)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)

I will probably replace this one with loop_forever2 in the next version release. Unfortunately I had a bug in loop_forever2, else I would recommend you use that one. Fixed it in master though.

@scls19fr
Copy link
Contributor Author

scls19fr commented Mar 1, 2024

julia> versioninfo()
Julia Version 1.10.1
Commit 7790d6f064 (2024-02-13 20:41 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 × Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, ivybridge)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)

@denglerchr
Copy link
Owner

If you can change to master, and see if the loop_forever2 can do as a replacement for you, that would help. I havent really used loop_forever2 myself, as on my machines the loop_forever works for Julia > v1.8 .
Plan is then to swap the loop_forever and loop_forever2 functions to promote the stable version

@scls19fr
Copy link
Contributor Author

scls19fr commented Mar 1, 2024

I can confirm that it works fine with loop_forever2.

@denglerchr
Copy link
Owner

I removed export from loop_forever in 0.9 and recommend using loop, which can do everything loop_forever can. Since I also cant seem to reproduce the issue with loop_forever Im closing this one for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants