Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
Christian Kratky 8708609498 Add more function mappings for MQTTnet Server. il y a 5 ans
..
00_sample.py Add more function mappings for MQTTnet Server. il y a 5 ans
readme.md Extend MQTTnet.Server application. il y a 5 ans

readme.md

This directory contains scripts which are loaded by the server and can be used to perform the following tasks.

  1. Validation of client connections via credentials, client IDs etc.
  2. Manipulation of every processed message.
  3. Validation of subscription attempts.
  4. Publishing of custom application messages.

All scripts are loaded and MQTTnet Server will invoke functions according to predefined naming conventions. 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.

The Python starndard library ships with MQTTnet Server. But it is possible to add custom paths with Python libraries.

import sys
sys.path.append(PATH_TO_LIBRARY)
  • All scripts must have the file extension .py.
  • All scripts are sorted alphabetically (A to Z) before being loaded and parsed.