您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021
  1. # MQTT Scripts
  2. This directory contains scripts which are loaded by the server and can be used to perform the following tasks.
  3. * Validation of client connections via credentials, client IDs etc.
  4. * Manipulation of every processed message.
  5. * Validation of subscription attempts.
  6. * Publishing of custom application messages.
  7. All scripts are loaded and _MQTTnet Server_ will invoke functions according to predefined naming conventions.
  8. If a function is implemented in multiple scripts the context will be moved throug all instances. This allows overriding of results or passing data to other (following) scripts.
  9. The Python starndard library ships with _MQTTnet Server_. But it is possible to add custom paths with Python libraries.
  10. ```
  11. import sys
  12. sys.path.append(PATH_TO_LIBRARY)
  13. ```
  14. * All scripts must have the file extension _.py_.
  15. * All scripts are sorted alphabetically (A to Z) before being loaded and parsed.