Skip to content

Conversation

konikoni428
Copy link
Contributor

MQTTのサンプルがv0.0.5のアップデート時に正しく動作しないようなコードに書き変わってしまっていたのでその修正です。

cmd_queueはasyncioのループ内で生成する必要がありました。
51行目でNoneを入れるとlintエラーが発生するので2回生成してます。

また、lintの問題がありますが、#59 の変更も取り込まないとBLEの状態変化をキャッチできません。

@codecov
Copy link

codecov bot commented Aug 1, 2022

Codecov Report

Merging #62 (0181b40) into main (0507703) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #62   +/-   ##
=======================================
  Coverage   93.95%   93.95%           
=======================================
  Files           8        8           
  Lines        1141     1141           
=======================================
  Hits         1072     1072           
  Misses         69       69           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e15fe11...0181b40. Read the comment docs.

@mochipon mochipon merged commit 4ca3826 into mochipon:main Aug 1, 2022
@konikoni428
Copy link
Contributor Author

Thank you!

@konikoni428 konikoni428 deleted the fix/mqtt-sample-not-working branch August 1, 2022 08:38
@mochipon
Copy link
Owner

mochipon commented Aug 1, 2022

Good catch, thank you so much!

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

Successfully merging this pull request may close these issues.

2 participants