秦羽的博客
  • 首页
  • 动态
  • 关于
  • 动态
    关于
首页 标签 MQTT 下的文章

Python代码MQTT配合mysql使用报错AttributeError: 'NoneType' object has no attribute 'read'

MQTT配合mysql使用报错AttributeError: 'NoneType' object has no attribute 'read'猜测是多线程的原因,多个线程共享了一个数据库连接解决方法执行sql时加上互斥锁import threading lock = threading.Lock() lock.acquire() cursor.execute(command,data) ...

 Python  2021-09-26 PM  162次  0条

Python在windows下搭建MQTT服务器并实现通信

注意MQTT协议中有三种身份:发布者(Publish)、代理(Broker)(服务器)、订阅者(Subscribe)。首先必须要需要搭建MQTT服务器,才能进行后续发布和订阅代码操作。搭建MQTT服务器ActiveMQ 5 下载地址:http://activemq.apache.org/index.html下载后进入apache-activemq-5.16.0-bin\apache-acti...

 Python  2020-11-09 PM  741次  0条

 栏目分类

  •  Python50
  •  django23
  •  Vue22
  •  Linux43
  •  shell5
  •  博客搭建2
  •  bug记录21
  •  数据库15
  •  Markdown3
  •  VSCode2
  •  工具14
  •  壁纸1
  •  CSS4
  •  部署16
  •  技术12
  •  docker4

标签云

mysql vue docker python ngrok 笔记 linux django docker-compose 函数 bug Markdown 问卷喵 Github word uwsgi models token jwt drf 日志 MQTT mysql8 nginx celery vmware redis django_crontab acme.sh monaco-editor

友情链接申请

问卷喵 秦羽贴吧云签到 张先生的博客
© 2022 秦羽的博客.个人博客  / 豫ICP备17008007号-4