Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
Christian Kratky 0c7a5a992b Expose more properties of the connection validator context in MQTTnet.Server. Migrate return code to reason code. 5 anni fa
..
00_sample.py Expose more properties of the connection validator context in MQTTnet.Server. Migrate return code to reason code. 5 anni fa
readme.md Add authorization for MQTTnet.Server 5 anni fa

readme.md

MQTT Scripts

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

  • Validation of client connections via credentials, client IDs etc.
  • Manipulation of every processed message.
  • Validation of subscription attempts.
  • 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.